Jump to content
Sign in to follow this  
falcon_565

Removing Weapons from Player Corpses

Recommended Posts

Hey guys,

Quick question, I've search the forms but found nothing, is there a good command to remove weapons from players corpses, I have a respawn mission and I'd like to keep people spawning with the gear they died with however I don't want everyone running around with a SAW by the end of it. I was thinking that I should add an event handler to the players init and execute a script to do this but I have yet to find any command that work. Thanks

-Falcon

Share this post


Link to post
Share on other sites

In the initialization line of the unit type/paste:

this addEventHandler ["killed", {_this exec "killed.sqs"}]

Then create a script called killed.sqs which contains:

_unit=_this select 0;

removeAllWeapons _unit;

exit;

Share this post


Link to post
Share on other sites

Thanks appears to work fine, just a quick question about locality, if I'm running this on a dedicated server the players weapon (and anything else I execute in the script) will be removed for all clients right?

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  

×