1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
722 B

Scriptname _00E_WalkingCameraTriggerboxSc extends ObjectReference
{Applies the walking camera Idle to the player for the set duration
}
Idle Property IdleWalkingCameraStart Auto
Idle Property IdleWalkingCameraEnd Auto
Float Property WaitingTime Auto
Bool Property PlayAnimPlayer Auto
Actor Property PlayerREF Auto
Event OnTriggerEnter(ObjectReference akActionRef)
If PlayAnimPlayer == True
if akActionRef == Game.GetPlayer()
Game.DisablePlayerControls()
Game.GetPlayer().PlayIdle(IdleWalkingCameraStart)
Debug.Notification("Playing anim 1")
Utility.Wait(WaitingTime)
Game.GetPlayer().PlayIdle(IdleWalkingCameraEnd)
Debug.Notification("Playing anim 2")
Game.EnablePlayerControls()
EndIf
EndIf
EndEvent