Jump to content
Sign in to follow this  
Morten87

How to add Grenades; after using "Remove AllWeapons this"

Recommended Posts

Hi.

I'am trying to add grenades to a certen unite. after I have used the "RemoveAllWeapons". But I'am having trubble to add grenades.

This is the code I use.

This addMagazine Grenades_west / grenades / SmokeShell

This addWeapon Grenade_west/ grenades / SmokeShell

All the other things like weapons and ammo/ nightvison/ binocular, works but I cant seem to add grenades.

What am I doing?

Share this post


Link to post
Share on other sites

If you look here you will see that the grenade classname is "HandGrenade_West".

I am 90% sure the code below will work. (If it doesn't replace "addweapon" with "addmagazine".)

removeallweapons this;
this addweapon "HandGrenade_West";

Notice that the grenade's name has quotes around it.

Share this post


Link to post
Share on other sites

Hi, thanks for the answer, but I think I tryed that code to, but I will give it another shot. Thanks.

Share this post


Link to post
Share on other sites

Hi, just checked and Handgrenade are a Mag as Nichevo said they might be so you will need.

This addMagazine "HandGrenade_West";

Share this post


Link to post
Share on other sites

After respawn, how I repeat the :

"removeallweapons this;

this addweapon "HandGrenade_West" ????????????

Share this post


Link to post
Share on other sites
After respawn, how I repeat the :

"removeallweapons this;

this addweapon "HandGrenade_West" ????????????

try something like this

init.sqf:

player addEventHandler ["KILLED", {_this execVM "respawn.sqf"}];

respawn.sqf:

waituntil {alive player};

removeallweapons player;

player addMagazine "HandGrenade_West";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×