Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
381 B
10 lines
381 B
5 months ago
|
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
|