H3X1C Posted January 28, 2017 Share Posted January 28, 2017 (edited) *Possible Is it possible to get the ref of an NPC you shoot and hit as I want to make a mod where with a specific weapon so if you shoot someone with it, it will trigger a script and I need the ref of the NPC I have shot to do what I want to do I thought you would be able to attach a script to a weapon but cannot find an event to do so :sad: Any help? Edited January 28, 2017 by H3X1C Link to comment Share on other sites More sharing options...
xBloodTigerx Posted January 28, 2017 Share Posted January 28, 2017 possible if the npc you shoot has a OnHit function and has a object reference of itself Link to comment Share on other sites More sharing options...
steve40 Posted January 30, 2017 Share Posted January 30, 2017 (edited) The only way i can think of is to apply a cloak spell to all actors within a given radius, which in turn applies a magic effect to them, which applies a script with an OnHit event to monitor for attacks originating from the player.Edit: you could try using a perk, like KitsuneOuka suggests here. Edited January 30, 2017 by steve40 Link to comment Share on other sites More sharing options...
Recommended Posts