Disabling Ability to Shoot
#1

Hi,

So, I am working on a Replica Weapons system, and I need the player to be able to hold a gun, but not be able to use it, only hold it. Is there a way I can do this, or would I be better off using the weapon objects and attaching them to the players hand (the problem with that is I don't know how aiming would work)?
Reply
#2

Hmm, never tried this. Maybe a way you could do this is get the button the player is pressing/holding(the fire button), and if it is, set it to apply some sort of animation, kill the animation, and repeat. (with a loop ofcourse).
Reply
#3

You could check if he has a certain weapon and ammunation aka 1 ammo and if he has apply a function or animation or simply unfreeze him or apply the carry animation to disable the shot being taken. ((This is blatantly for a pre-defined key, aka key_fire))
Reply
#4

Quote:
Originally Posted by Andregood
Посмотреть сообщение
You could check if he has a certain weapon and ammunation aka 1 ammo and if he has apply a function or animation or simply unfreeze him or apply the carry animation to disable the shot being taken. ((This is blatantly for a pre-defined key, aka key_fire))
You did nothing but copy what I said. Lol.
Reply
#5

Quote:
Originally Posted by zDivine
Посмотреть сообщение
You did nothing but copy what I said. Lol.
Sorry about that, didn't pay attention, just tried to help the man
Reply
#6

Hmm, I'm sure I'll work something out along the lines of what you said, thanks for your help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)