Difference between revisions of "Talk:Dissecting the Scripts for Weapon Racks"
Talk:Dissecting the Scripts for Weapon Racks (edit)
Revision as of 16:05, 29 January 2013
, 16:05, 29 January 2013→Erroneous assertion
imported>HawkFest |
imported>HawkFest |
||
Line 10: | Line 10: | ||
{A marker reference parent of other objects that you wish to enable when the player becomes member of some allowed faction} | {A marker reference parent of other objects that you wish to enable when the player becomes member of some allowed faction} | ||
Actor Property PlayerREF Auto | Actor Property PlayerREF Auto | ||
Bool ShouldWaitForAllowedFaction = True | |||
Event OnLoad() | Event OnLoad() | ||
If | If ShouldWaitForAllowedFaction | ||
GoToState("WaitForAllowedFaction") | GoToState("WaitForAllowedFaction") | ||
EndIf | EndIf | ||
Line 20: | Line 21: | ||
Event OnBeginState() | Event OnBeginState() | ||
If PlayerREF.IsInFaction(AllowedFaction) | If PlayerREF.IsInFaction(AllowedFaction) | ||
ShouldWaitForAllowedFaction = False | |||
; Do what you want to do | |||
Else | Else | ||
RegisterForSingleUpdateGameTime(0.9) | RegisterForSingleUpdateGameTime(0.9) |