Jump to content
Sign in to follow this  
goatboy

Spawn with nothing ?

Recommended Posts

ok i have been looking around and have came up short. What i am trying to do is make it so when people span in on my mp mission thy have nothing on or may be a hand gun. Or even beta if some one has a code for getting rid of smoke nades as thy seam to lag server out hard.

Share this post


Link to post
Share on other sites

What I found out so far:

removeallcontainers this; (or unit name instead of "this" - removes ammobelts, vests, you name it);

removeallweapons this; (or unit name instead of "this" - removes what it says);

You can also remove certain weapons using it's certain weapons class:

this removeweapon "CLASS"; (removes a specified weapon from a unit);

this removeitem "CLASS"; (removes an item);

To find out the weapon classnames you might want to check out Sickboy's thread over here.

Edit: Read your post again and as you said you wanted to use it for multiplayer, you might want to try this:

removeallweapons this; this addEventHandler ["respawn", {removeallweapons (_this select 0)}];

Edited by pappmensch

Share this post


Link to post
Share on other sites

Edit: Read your post again and as you said you wanted to use it for multiplayer, you might want to try this:

removeallweapons this; this addEventHandler ["respawn", {removeallweapons (_this select 0)}];

Shot man it worked a treat.

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  

×