IsRaceFlagSet - Race

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Race Script

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

Syntax[edit | edit source]

Bool Function IsRaceFlagSet(Int n) native

Parameters[edit | edit source]

  • n: the Nth Race Flag

Return Value[edit | edit source]

Returns whether the specified race flag is set.

Examples[edit | edit source]

Bool IsPlayable = ImperialRace.IsRaceFlagSet(0x00000001) ; IsPlayable = true

; Can Player talk to cows ?
if ( !CowRace.IsRaceFlagSet(21) )
   Notification("Cows can not talk !")
endif

Notes[edit | edit source]

None

See Also[edit | edit source]