Jump to content

[Script] OnHit not working after save re-load


Breez3r

Recommended Posts

I created a script with an onhit event which just displays a message box. I attached the script to three different objects. When I start the game and load a save game it works fine and all three objects display a message box but if I reload the same save only one of the objects triggers the message box. If I load a save from another cell and load the save with the objects its back to working again.

 

Can someone please tell me what I am doing wrong. Thanks.

Scriptname test extends ObjectReference  

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)

Debug.messagebox("OnHit triggered ")

EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...