A long time ago I started to make an fps x). And one of the weapon is a grenade.

I used this tutorial, but it is not complete :

When i click on "2" on my keyboard, the grenade is activated. When i click on the mouse to use the grenade, it's appears but it not... "go and bounce". Tu grenade stay "in my hand" and it "explose" when the enemy is near it...

So, if this thing works : - keypress down = the grenades appears it won't bounce..

My question is, what can i write in my script, to do this : - keypress up = the grenades "go and bounce..." (yes, "how to do that xD")

Maybe it's the same principle that the bullet?! but... i don't find to do that x/

Thanks for your advice, and have a nice day :)

Alain

Here is a screenshot of my script, i think the missing script must be placed where I wrote "Heeeelp" xD

What node is the grenade? If it’s a RigidBody node, you can set the physics property in the inspector and adjust the bounce setting, which should make it bounce around the environment as it collides.

a year later