Grenade throwing animation
Is there anyway to trigger a grenade throwing animation? For example, in a plugin I'm testing, I'd like it to act exactly as if I was throwing a grenade when I press whatever button is bound to "throw".
|
This is what I did:
Code:
|
Looks good, thanks! 8)
|
Tested it out, and it didnt go quite as planned. :wink: Maybe it was because of how I made the script to test it out. I gave myself enough money and the animation looked very weird with guns out, although that might be expected as its not a nade, and thats the animation I'm trying to do. So I gave my self a nade and then enough money to trigger it. Looked funky, I dont think that was how it was suppose to work. Any ideas?
Code:
|
Hmm.. Check if they have a nade out first and holding the attack button:
Code:
|
The thing is, I want this animation to be able to happen (correctly :wink:) regardless of what the user is currently holding, wether it be a gun, nade, or shield, etc.
|
Then you will have to set the model to the grenade one for all weaps :P
|
So basically that means its not doable? A little tired, sorry if I dont understand everything at first. What I think you just told me is that basically the animation wont work unless a grenade is at hand, so in that case, could I quickly switch the users weapon from whatever it is to any grenade the user has in his inventory, do the animation, and then switch back to the gun?
|
Code:
Code:
|
Quote:
|
| All times are GMT -4. The time now is 15:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.