Reimann 10 Posted December 18, 2009 I have a trigger to delete all vehicles that enter it, but it does not work on the crew. I have another where I know the vehicle's name and can delete all crew there, but using foreach crew thislist gives the error 'type array, expected object'. So, foreach crew varname: works fine foreach thislist: deletes vehicle but not crew foreach crew thislist: gives error, does nothing Share this post Link to post Share on other sites
Lester 0 Posted December 18, 2009 Have you tried something like this ? {{deletevehice _x} foreach crew _x} foreach thislist; Share this post Link to post Share on other sites
shuko 59 Posted December 18, 2009 {{deleteVehicle _x} foreach crew _x; deleteVehicle _x} foreach thislist Share this post Link to post Share on other sites
Reimann 10 Posted December 18, 2009 Wow, I had a single bracket (brace) in just the wrong spot at one point. Thank you very much. Share this post Link to post Share on other sites