Difference between revisions of "IsInFaction - Actor"
Jump to navigation
Jump to search
imported>Vitamant m (1 revision: Clobber re-import by Henning) |
imported>Goggle m (→Examples: Not about this function returning true instead of false under certain circumstances.) |
||
Line 23: | Line 23: | ||
endIf | endIf | ||
</source> | </source> | ||
== Notes == | |||
* There's possibility this function will return true under certain circumstances where it should return false instead. See the GetFactionRank - Actor talk page | |||
== See Also == | == See Also == |
Latest revision as of 11:41, 23 October 2016
Member of: Actor Script
Returns whether this actor is a member of the specified faction or not.
Syntax[edit | edit source]
bool Function IsInFaction(Faction akFaction) native
Parameters[edit | edit source]
- akFaction: The Faction to check.
Return Value[edit | edit source]
Whether the actor is a member of the specified faction or not.
Examples[edit | edit source]
; Is the guard in the rift faction?
if Guard.IsInFaction(RiftFaction)
Debug.Trace("Guard is in the rift faction")
endIf
Notes[edit | edit source]
- There's possibility this function will return true under certain circumstances where it should return false instead. See the GetFactionRank - Actor talk page