2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MQ11a_KnockDownBoxSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if (akActionRef == PlayerREF) && (Done == False)
|
|
|
|
Done = True
|
|
|
|
KnockOut()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Function KnockOut()
|
|
|
|
|
|
|
|
Game.DisablePlayerControls()
|
|
|
|
Game.SetPlayerAIDriven(True)
|
|
|
|
_00E_NPCKillBodyfall.Play(PlayerREF)
|
|
|
|
GetHit.Apply()
|
|
|
|
Self.KnockAreaEffect(1, 512)
|
|
|
|
StaggerPushFFSelfAreaSP.Cast(PlayerREF, PlayerREF)
|
|
|
|
Game.ShakeCamera()
|
2024-01-10 14:08:24 +00:00
|
|
|
MQ11a.SetCurrentStageID(160)
|
2021-10-05 22:15:58 +00:00
|
|
|
Utility.Wait(1)
|
|
|
|
Game.EnablePlayerControls()
|
|
|
|
Game.SetPlayerAIDriven(False)
|
|
|
|
|
|
|
|
EndFunction
|
|
|
|
|
|
|
|
bool Done
|
|
|
|
Spell Property StaggerPushFFSelfAreaSP Auto
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
ImageSpaceModifier Property GetHit Auto
|
|
|
|
Sound Property _00E_NPCKillBodyfall Auto
|
|
|
|
Quest Property MQ11a Auto
|