enderalse/source/scripts/_00e_gambling_chairsc.psc

21 lines
501 B
Plaintext

Scriptname _00E_Gambling_ChairSC extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
Actor akActor = akActionRef as Actor
If !bIsSitting
If akActionRef == Game.GetPlayer()
Game.ForceThirdPerson()
EndIf
Utility.Wait(2.75)
akActor.SetHeadtracking(False)
bIsSitting = True
Debug.SendAnimationEvent(akActionRef as Actor, "_00E_GamblingChair")
ElseIf bIsSitting
Utility.Wait(2)
akActor.SetHeadtracking(True)
bIsSitting = False
EndIf
EndEvent
bool bIsSitting