davidoss 552 Posted September 9, 2016 HI I am looking for iterate trough allmapmarkers array and pushback all indexes when marker in area trigger Is there any way to do this? Share this post Link to post Share on other sites
Greenfist 1863 Posted September 9, 2016 Something like this maybe? _markers = allMapMarkers select {(getMarkerPos _x) inArea yourTrigger} 1 Share this post Link to post Share on other sites
davidoss 552 Posted September 9, 2016 Thanks buddy. Share this post Link to post Share on other sites
davidoss 552 Posted September 9, 2016 Next empty head: I have a trigger and an array with object attached to its variable Looking for condition where trigger should fire The problem is that the array attached it could be empty or not The second problem is if the objects get destroyed and removed the array can be filed up with [objectNull, objectNull,...] I need to fire the trigger when array empty [] or all indexes are >objectnull< (count ((thisTrigger getVariable 'dependency') select 2) == 0) Share this post Link to post Share on other sites
jshock 513 Posted September 10, 2016 ({!isNull _x} count ((thisTrigger getVariable "depenency") select 2) == 0) This should return false if there are any non-null objects in the array or return true if it is empty or only null objects present. Share this post Link to post Share on other sites