-ORION- 2 Posted July 16, 2016 Hi all, I'm trying to have two UGV drones activate a trigger when they are moved into a designated area. I have named the drones bob and rob. I tried using the a && b command but I keep getting this error: Error &&: Type Object, expected Bool What would be the best way to activate the trigger when BOTH drones are in the designated area? Thanks in advance. Share this post Link to post Share on other sites
kylania 568 Posted July 16, 2016 bob in thisList && rob in thisList Share this post Link to post Share on other sites
-ORION- 2 Posted July 16, 2016 Silly me. Thanks kylania. Share this post Link to post Share on other sites
bull_a 44 Posted July 20, 2016 Another way of doing it (but would recommend the above method for a small list of objects). This method is best with scripts to return a list of objects in a trigger _trigger = someTrigger; _allObjects = [list of objects]; _objectsInTrigger = []; { if ([_trigger,_x] call BIS_fnc_inTrigger) then { _objectsInTrigger pushBack _x; }; } forEach _allObjects; // return _objectsInTrigger; (Un-tested) Hope this is helpful Share this post Link to post Share on other sites
kylania 568 Posted July 20, 2016 There's the new inArea command as well. Share this post Link to post Share on other sites