Throwing grenade on release

AntL

Member
Time for the daily question!

On the shootable weapon script, you have the option to fire the weapon on release of the button (setting it to charge and fire). Can you replicate this functionality for a grenade? So you hold down the button and releasing the button throws it? Thanks!
 
There is the option to Throw On Stop Use but this will start the throwing animation when the use ability has ended, versus actually throwing the object without an animation. I bet that you could get it working like how you want by playing the throw animation when the character starts to use the throwable object and then just use a timer with 0 seconds for deciding when to throw instead of relying on an animation event.
 
Top