ScriptName aaaKimachuuBeheadingGameEnd Extends ObjectReference

ImageSpaceModifier Property is01 Auto
Message Property mes01 Auto
Sound Property sou01 Auto

Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
	If akNewContainer == Game.GetPlayer()
		is01.Apply()
		sou01.Play(Game.GetPlayer())
		Game.GetPlayer().PushActorAway(Game.GetPlayer(), 10.0)
		Game.ShakeCamera(Game.GetPlayer(), 1.0, 5.0)
		Game.TriggerScreenBlood(5)
		Utility.Wait(5.5)

		is01.Apply()
		sou01.Play(Game.GetPlayer())
		Game.ShakeCamera(Game.GetPlayer(), 1.0, 5.0)
		Game.TriggerScreenBlood(30)
		Game.ForceThirdPerson()
		Game.GetPlayer().SetActorValue("Paralysis", 1.0)
		Debug.SendAnimationEvent(Game.GetPlayer(), "DeathAnim")
		Utility.Wait(5.5)
		
		is01.Apply()
		Game.ShakeCamera(Game.GetPlayer(), 1.0, 5.0)
		Utility.Wait(0.5)
		Game.FadeOutGame(false, true, 0.0, 0.0)
		mes01.Show()
		Utility.Wait(0.1)
		Game.QuitToMainMenu()
	EndIf
EndEvent