enderalse/scripts/source/_00e_mq11a_knockdownboxsc.psc

33 lines
750 B
Plaintext
Raw Normal View History

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()
MQ11a.SetStage(160)
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