WarRatsG Posted July 17, 2011 Share Posted July 17, 2011 I hate changing anything I don't have to. So I didn't want to remove any item/actor's scripts, even temporarily. Basically I am trying to make it so that I cast a power and the opponent is thrown away from me when I strike him with a weapon. Easily done using PushActorAway. I would put this this into a script on the weapon, but I don't want any script to be disrupted. I could even put a script on the NPC but that would be even worse. The way I see it, there must be either an enchantment or script on the weapon that takes effect on strike, or an OnHit block on the NPC. OnHit only works if directly attached to an actor, so tokens and spells wouldn't work. The question I am trying to ask is: is there any way I can cause this script to take effect, without cloning the weapon or swapping scripts around. I've spent a few hours raking the CS Wiki for an answer, but can find no "simple" or flawless solution. Does anyone know of any? Link to comment Share on other sites More sharing options...
fg109 Posted July 17, 2011 Share Posted July 17, 2011 What about just using OBSE's OnHit event handler? You wouldn't have to clone weapons or swap scripts that way. Link to comment Share on other sites More sharing options...
WarRatsG Posted July 17, 2011 Author Share Posted July 17, 2011 I haven't seen event handlers before, then again I'm not used to a lot of the more advanced parts of OBSE. It's one thing to grab a function from the CS Wiki, it's easy enough to just use that. Event handlers are completely new to me, but a quick search on google gave me a quick explanation. It looks promising, thank you :) Link to comment Share on other sites More sharing options...
Recommended Posts