Examples of weapon sanity checks

I am fairly new to scripting weapons and after researching a lot I’ve managed to create a fairly good slingshot. Now I am beginning to make it secure. Two things I have added to secure the event when firing the slingshot are

  1. Check to see if the bullet was shot from where the Player’s tool was.
  2. Check every second to make sure the event is not getting fired faster than it should really be getting fired.

these two in themselves are all I could think of and I am sure there are more. I know that security depends fully on the game but I was wondering if anyone could give some examples on ways they sanity check their weapons.

1 Like

Well the two ways you said are okay. Also make sure you see where the slingshot ends and what the pathway of the shot is and that’s usually how I do it.

3 Likes