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