davethepak Posted April 16, 2018 Share Posted April 16, 2018 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 More sharing options...
foamyesque Posted April 18, 2018 Share Posted April 18, 2018 If it only needs to be the player you care about, and especially if you want it to be always on, use a quest and alias. Directly editing the player is bad mojo. Link to comment Share on other sites More sharing options...
Recommended Posts