pcc 14 Posted August 6, 2017 I'm trying to teleport an entire group including vehicles with { _x setPos ([_destination,50,50 * 1.3] Call GetRandomPosition); } forEach unit _team; but the team's vehicles gets left behind. How to do I teleport their vehicles too within this loop? Share this post Link to post Share on other sites
opusfmspol 282 Posted August 7, 2017 (edited) See if this works: _vehs = []; { if (vehicle _x == _x) then { _x setPos ([_destination,50,50 * 1.3] Call GetRandomPosition); } else { if !(vehicle _x in _vehs) then { vehicle _x setPos ([_destination,50,50 * 1.3] Call GetRandomPosition); _vehs = _vehs + [vehicle _x]; }; }; } forEach units _team; Edited August 7, 2017 by opusfmspol corrected 1 Share this post Link to post Share on other sites