Difference between revisions of "TryToRemoveFromFaction - ReferenceAlias"
Jump to navigation
Jump to search
TryToRemoveFromFaction - ReferenceAlias (edit)
Revision as of 16:22, 29 June 2013
, 16:22, 29 June 2013→Syntax
imported>Jlundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ReferenceAlias Script This is a convenient way to remove an actor in an alias from a faction without calling [[G...") |
imported>Thingy Person (→Syntax) |
||
Line 8: | Line 8: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
bool Function TryToRemoveFromFaction(Faction FactionToRemoveFrom) | bool Function TryToRemoveFromFaction(Faction FactionToRemoveFrom) | ||
Actor ActorRef = GetActorReference() | |||
if ActorRef | |||
ActorRef.RemoveFromFaction(FactionToRemoveFrom) | |||
Return True | |||
EndIf | |||
Return False | |||
EndFunction | |||
</source> | </source> | ||