krigulv Posted July 30, 2013 Share Posted July 30, 2013 Ok, so I've been trying to get this script down. The purpose of the script is for shotguns to knock down a target if it is within a certain range. This is the script I placed on 12ga ammo Impact Script: scn ShotgunKnockdownref ShooteeBegin ScriptEffectStartIf player.GetDistance Shootee < 500set Shootee to GetSelfplayer.pushactoraway Shootee 10EndIfEnd Now, here's the issue: the script works just fine at first. It knocks em way too far, but that's just for testing. Then after a few kills, it just stops working. Even when I quit and play again, it's still not working. Anyone know the issue? Is there a way I can get it more stable? Link to comment Share on other sites More sharing options...
jazzisparis Posted July 30, 2013 Share Posted July 30, 2013 Try this, instead: scn ShotgunKnockdown ref Shootee Begin ScriptEffectStart set Shootee to GetSelf If player.GetDistance Shootee < 500 player.pushactoraway Shootee 10 EndIf End Link to comment Share on other sites More sharing options...
krigulv Posted July 30, 2013 Author Share Posted July 30, 2013 I actually thought up a much cleaner way to do this which seems to be more stable and closer to the effect I want.Thank you for the reply, jazzisparis.When the world is mine, you can have Trinidad and Tobago. Link to comment Share on other sites More sharing options...
Recommended Posts