Jump to content

Scripting: easiest way to detect onHit events on ANY actor?


Mansh00ter

Recommended Posts

I am toying with some interesting concepts for combat overhaul, but what I'd like to know is if there is an easy, straightforward way to make a certain script run on any actor in the game, so that when either the player gets hit by something or the player hits something, a proper event is registered and code can be executed?

 

I would like to avoid having to attach a script to every weapon or actor in the game, so if there is some way to do it globally and automatically, I would love to hear about it. I suspect I should attach this script to the player via quest, but would appreciate if anyone with know-how could explain if onHit events can be attached to the player in such a way.

 

And it is vital that it works both ways, so that I can detect and reference both the actor being hit and the actor doing the hitting.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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