daza 36 Posted August 13, 2009 Ive made a MP TVT map. And i have one area that is a POW camp that has a trigger (detects presence of Opfor in the center of it, to run a script to remove all weapons and items. I thought it would be straight forward. But it wont work. removeaLLWeapons player; removeaLLitems player; hint "Welcome to the Detainment Center!"; Do i have to name each unit of the Opfor and have a line like {player removeallweapons} forEach [1,2,3,4] etc? Also do i need to create a publicvariable to update to other players in the area, that the weapons of those players inside the compound area do indeed have no weapons? Thanks Daza Share this post Link to post Share on other sites
f2k sel 164 Posted August 13, 2009 Place this code in the on act box of a trigger. Set your trigger to the side you want to remove weapons from and your good to. {removeallweapons _x;removeAllItems _x} foreach thislist; hint "Welcome to the Detainment Center!"; Share this post Link to post Share on other sites
daza 36 Posted August 14, 2009 Hey thanks F2k Sel :) That worked great! Share this post Link to post Share on other sites
USMCWall 0 Posted November 5, 2010 This thread was the closest thing I could find to what I was trying to do, but is there a ways to predefine weapons to be removed from an entire AI side? I'm trying to remove the radios, maps, and gps' from the entire OPFOR and place it back into some of their own init boxes. If anyone could help I'd greatly appreciate it. Share this post Link to post Share on other sites
shuko 59 Posted November 5, 2010 { if (side _x == EAST) then { _x removeweapon "ItemMap"; _x removeweapon "ItemGPS"; _x removeweapon "ItemRadio"; }; } foreach allunits; Then use addweaponcargo to add stuff into a box. Share this post Link to post Share on other sites
USMCWall 0 Posted November 5, 2010 Much appreciated, it worked. Just put in a trigger to and an SQF file to run when the trigger was activated. Not sure if that's what you would have done, but thanks for the coding. Share this post Link to post Share on other sites