enderalse/source/scripts/defaultstopsceneonhit.psc

10 lines
381 B
Plaintext
Raw Normal View History

scriptname defaultStopSceneOnHit extends ReferenceAlias
Scene property sceneToStop Auto
bool property playerOnly Auto
Event onHit(objectReference akAggressor, Form akWeapon, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
if (!playerOnly || akAggressor == (Game.GetForm(0x14) as Actor))
sceneToStop.Stop()
EndIf
EndEvent