Jump to content
Sign in to follow this  
nicomach

Equipment removal script

Recommended Posts

Hello im making a trench war type map, and i do not want the players spawning with night vision. I spent 3 hours searching and i have had no luck. im relatively new to scripting so please give me a step by step (or descriptive enough) instructions on how to make players spawn with everything but night vision

Share this post


Link to post
Share on other sites

That helps, but what do i do with the bit of code?

---------- Post added at 02:17 AM ---------- Previous post was at 02:03 AM ----------

Nevermind, thank you

---------- Post added at 02:46 AM ---------- Previous post was at 02:17 AM ----------

Ok so that works but in multiplayer when you spawn after you die once you spawn with the night vision. Fix?

Edited by nicomach

Share this post


Link to post
Share on other sites

use this code:

this addMPEventHandler ["MPRespawn", {(_this select 0) removeWeapon "NVGoggles";}];

Share this post


Link to post
Share on other sites
use this code:

this addMPEventHandler ["MPRespawn", {(_this select 0) removeWeapon "NVGoggles";}];

Where do i put that

Share this post


Link to post
Share on other sites

No luck with that script, this is on arma 2 regular so i dont think it works. Any other examples?

Share this post


Link to post
Share on other sites

Instead of remove weapon it is:

this removeEquipment "GPS" ( or what ever it happens to be).

I have not found a "Remove all equipment" so you need a separate comand for each item of equipment.

All the commands go in the int line of the soldier.

There is no need to type a fresh command for each soldier. Instead use Copy and Paste ctrl C and ctrl V .

"V" for Paste sounds weird but works.

.

---------- Post added at 03:05 PM ---------- Previous post was at 03:04 PM ----------

Or make one soldier and then use copy and paste and make lots of copies of that soldier.

.

.

Share this post


Link to post
Share on other sites
No luck with that script, this is on arma 2 regular so i dont think it works. Any other examples?

use this code in init line of unit, for A2 only or free also most likely.

this addEventHandler ["Respawn", {(_this select 0) removeWeapon "NVGoggles";}];

I have not found a "Remove all equipment" so you need a separate comand for each item of equipment.

removeAllItems

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  

×