Jump to content

[LE] best way to attach script to detect when player is hit.


Recommended Posts

I have some scripts where I need to track when the player is hit.

 

I understand about using the Onhit event, but am trying to figure out the best way to use it.

 

As far as I can see, there are a few ways to do this; I am looking for advice on which way may be better (performance wise - or just best practice?) from more experienced modders.

 

1 - attach script directly to player. (this seems simple - so I suspect it is not a good way....lol).

 

2 - create a placeholder quest, create a player alias, and attach the script to that (I understand the concept, but have not done it yet).

 

3 - Create an ability (constant magical effect) which has a script extended from it, then attach that affect to the player (but I have to worry about the brawling bug?).

 

4 - another way?

 

I am a bit new to modding, but trying to learn as much as I can.

 

thanks in advance for any insights.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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