Jump to content
Sign in to follow this  
Reimann

Delete all units in trigger

Recommended Posts

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

Have you tried something like this ?

{{deletevehice _x} foreach crew _x} foreach thislist;

Share this post


Link to post
Share on other sites

{{deleteVehicle _x} foreach crew _x; deleteVehicle _x} foreach thislist

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×