Difference between revisions of "TryToRemoveFromFaction - ReferenceAlias"

Jump to navigation Jump to search
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
 
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>


Navigation menu