Syn3r Posted July 29, 2017 Share Posted July 29, 2017 (edited) I'm trying to make a weapon that unlocks anything within your lockpick skill so the higher your lockpick skill the more items you unlock, I also want it to work on terminals. I'm bad scripts so any help would be appreciated. Edited July 29, 2017 by JTyo135 Link to comment Share on other sites More sharing options...
Ladez Posted July 30, 2017 Share Posted July 30, 2017 I think the only way to do this is with NVSE, using an OnHit or OnHitWith event handler. Here's an example that simply shows a message when something is hit with a weapon, then you can work from there: scriptname StartupScript begin GameMode if (GetGameRestarted SetEventHandler "OnHitWith", OnHitWithHandler, "second"::SomeWeaponForm endif end scriptname OnHitWithHandler ref rTarget ref rWeapon begin Function { rTarget, rWeapon } MessageEx "%n was shot with %n", rTarget, rWeapon end Link to comment Share on other sites More sharing options...
Recommended Posts