ZippyDSMlee Posted January 10, 2014 Share Posted January 10, 2014 (edited) Need to add stonewall perk for a weapon with a knock back effect, whats the proper way to cast it on the player. Heres a crappy tossed together script to give you an idea of what I am trying to do. ScriptName zippymoujorcritEffectScript ref myself ref mytarget short rnd Begin ScriptEffectStart set rnd to GetRandomPercent if rnd <= 99 set mytarget to GetCombatTarget If mytarget.hasperk stonewall != 1 set myself to GetSelf PlaceAtMe zippynullGrenadePulseExplosion Else ShowMessage StonewallMessage EndIf endif End ================================================================== EDIT Okay how about on equip? I can't get this to work ScriptName zippymoujorstonewallEffectScript Begin ScriptEffectStart begin OnEquip player player.addperk 00165449 end begin OnUnequip player player.removeperk 00165449 end End Edited January 11, 2014 by ZippyDSMlee Link to comment Share on other sites More sharing options...
Recommended Posts