TryToAddToFaction - ReferenceAlias: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
(added usage notes)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function TryToAddToFaction(Faction FactionToAddTo)
bool Function TryToAddToFaction(Faction FactionToAddTo)
Actor ActorRef = GetActorReference()
Actor ActorRef = GetActorReference()
Line 15: Line 15:
Return False
Return False
EndFunction
EndFunction
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 31: Line 31:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Try to add the boss to the bandit faction
; Try to add the boss to the bandit faction
BossAlias.TryToAddToFaction(BanditFaction)
BossAlias.TryToAddToFaction(BanditFaction)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==

Navigation menu