Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

if, for a live grenade, you mean a thrown grenade, the used script is not the one for creating weapons but the one used for creating object, like this:

Game.CreateObject("WPNGRENADESTHROWN" , new Vector2 (x,y));

So with this sintax you spawn a thrown grenade at the coordinates of x and y variables that you could change into numbers, variables, etc.

Obviously you need the method for use this command so the complete script is:

public void Grenade(TriggerArgs arg)
{

Game.CreateObject("WPNGRENADESTHROWN" , new Vector2 (0,0));

}

Create a button in your map then place the name of the method "Grenade" in the Script method section and test the map, if you press the button the grenades will spawn at the center of the map (because for the zeroes that I put in the coordinates of the Vector2).

JakSparro98 wrote:if, for a live grenade, you mean a thrown grenade, the used script is not the one for creating weapons but the one used for creating object, like this:

Game.CreateObject("WPNGRENADESTHROWN" , new Vector2 (x,y));

So with this sintax you spawn a thrown grenade at the coordinates of x and y variables that you could change into numbers, variables, etc.

Obviously you need the method for use this command so the complete script is:

public void Grenade(TriggerArgs arg)
{

Game.CreateObject("WPNGRENADESTHROWN" , new Vector2 (0,0));

}

Create a button in your map then place the name of the method "Grenade" in the Script method section and test the map, if you press the button the grenades will spawn at the center of the map (because for the zeroes that I put in the coordinates of the Vector2).

thanks jaksparro, but I alreay know how to code
My question was concerning disabled grenades, and, at this point, I guess there is no way

Oh, sorry if I treated you like a newbie.
You said you want a grenade that not explode instead of this, right? As you said I don't think now we can control the internal timer of the grenades or disable it.

We need to tell this to gurt only to know if in a future we could edit weapons and objects more deeply.