Answered BO2 Holding Grenade function

micromods

Known Member
Messages
15
Reaction score
6
Points
108
hello,

I was wondering if there is a function or something that checks if you are holding a grenade or cooking a grenade, i want to make a function that allows grenade cancels
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,327
Reaction score
763
Points
973
Just monitor if the grenade button is being pressed..
well i could do that but i found isThrowingGrenade() now i just need to find a way to cancel the grenade
You could... but you could do better.

Here you go.
Code:
cancelFrag()
{
    while( true )
    {
        if(self isThrowingGrenade() && self changeSeatButtonPressed())
            self forceOffHandEnd();
        wait .05;
    }
}
 

micromods

Known Member
Messages
15
Reaction score
6
Points
108
You could... but you could do better.

Here you go.
Code:
cancelFrag()
{
    while( true )
    {
        if(self isThrowingGrenade() && self changeSeatButtonPressed())
            self forceOffHandEnd();
        wait .05;
    }
}
thank you sooooo much
 
Top