Vegatry 10 Posted November 19, 2013 (edited) In the editor I place a trig with on Act: _nul = execVM "noNVGIND.sqf"; and 3 Independent groups have init field with group this = "group1"; group this = "group2"; group this = "group3"; noNVGIND.sqf: waitUntil {isServer || !isNull player}; { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; }; } forEach [group1,group2,group3]; It doesn't works, perhaps is the JIP script doing the trick? Edited November 19, 2013 by Vegatry Share this post Link to post Share on other sites
mad_cheese 593 Posted November 19, 2013 you need to use "units groupX", since groupX is only the group's name. also there's a wrong }; that snuck it's way into your script :) {_x unassignItem "NVGoggles_INDEP";_x removeItem "NVGoggles_INDEP"} forEach (units group1) + (units group2) + (units group3); Share this post Link to post Share on other sites
lappihuan 178 Posted November 19, 2013 If i get your thread title right, you want to remove it from all units on all sides. This should handle this: { //do your stuff here }forEach allUnits; Share this post Link to post Share on other sites
IndeedPete 1038 Posted November 19, 2013 { if ((side _x) == Independent) then { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; }; } forEach allUnits; Share this post Link to post Share on other sites
MulleDK19 21 Posted November 19, 2013 group this = "group1";group this = "group2"; group this = "group3"; How does that even make sense? Share this post Link to post Share on other sites
lappihuan 178 Posted November 19, 2013 not really ^^ Share this post Link to post Share on other sites
Vegatry 10 Posted November 19, 2013 { if ((side _x) == Independent) then { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; }; } forEach allUnits; What struggles me is does it need script to prevent JIP player synchronization issue? if yes, should it be(it's played on dedicated server): waitUntil(isDedicated || !isNull player); { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; }; } forEach allUnits; or should the waitUntil statement included in the scope? Share this post Link to post Share on other sites