enderalse/source/scripts/ccbgs_arbuttonscript.psc

19 lines
490 B
Plaintext

Scriptname ccBGS_ARButtonScript extends ObjectReference
{Shared script for Ayleid button}
Bool Property bPlayerOnly = false Auto
Sound Property ActivateSound Auto
Auto State Waiting
Event OnActivate(ObjectReference akActionRef)
GoToState("Busy")
If(bPlayerOnly && akActionRef == Game.GetPlayer() || !bPlayerOnly)
ActivateSound.Play(self)
PlayAnimationAndWait("Stage2ReturnStage1", "TransitionComplete")
EndIf
GoToState("Waiting")
EndEvent
EndState
State Busy
EndState