Jump to content
-ORION-

Specific Objects in Trigger Area? (a && b command trouble)

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×