IsRaceFlagSet - Race

From Creation Kit
Jump to: navigation, search

SKSE Member of: Race Script

Returns whether the specified race flag is set. (This function requires SKSE)

Syntax

Bool Function IsRaceFlagSet(Int n) native

Parameters

  • n: the Nth Race Flag

Return Value

Returns whether the specified race flag is set.

Examples

Bool IsPlayable = ImperialRace.IsRaceFlagSet(0x00000001) ; IsPlayable = true
 
; Can Player talk to cows ?
if ( !CowRace.IsRaceFlagSet(21) )
   Notification("Cows can not talk !")
endif

Notes

None

See Also