Jump to content
Sign in to follow this  
TAW_Yonose

Add/Remove

Recommended Posts

Im making a mission where NATO goes undercover and dressed up as civilian

this is what i have in the init of each player, the texts that are red dont work, what should i change?


removebackpack this;
removeheadgear this; 
removeuniform this;
removevest this;
removemagazine ; 
[color="#FF0000"]removeweapon "arifle_MX_F"; 
removeitem nvg;
assignitem "U_C_Commoner1_1";[/color]

Thank you

Share this post


Link to post
Share on other sites
removeBackpack this;
removeHeadgear this; 
removeUniform this;
removeVest this;
this removeMagazine ;  //  what are you trying to do here?
this removeWeapon "arifle_MX_F";
this unassignItem "NVGoggles";  //  best practice to unassign first
this removeItem "NVGoggles";
this assignItem "U_C_Commoner1_1";

Share this post


Link to post
Share on other sites

removeallweapons this;
removeAllAssignedItems this;
removeGoggles this;
removeHeadgear this;
removeVest this;
removeUniform this;
removeBackpack this;

this will strip the unit off, of all their belongings.

Share this post


Link to post
Share on other sites
removeallweapons this;
removeAllAssignedItems this;
removeGoggles this;
removeHeadgear this;
removeVest this;
removeUniform this;
removeBackpack this;

this will strip the unit off, of all their belongings.

Probably the best route to go, get rid of everything then add back exactly what you want.

Share this post


Link to post
Share on other sites

yea i got rid of everything expect NVG and MX Rifle, and i skipped the civilian clothing and added something else

Share this post


Link to post
Share on other sites

NVG's should get removed through "removeAllAssignedItems this;"

if thats not the case try this one:

{
   this unlinkItem _x;
}forEach ["NVGoggles","NVGoggles_OPFOR","NVGoggles_INDEP"];

greetings Na_Palm

Edited by Na_Palm
typo

Share this post


Link to post
Share on other sites

can be deleted...

Edited by D3VL3R
it is AI, not player...

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  

×