Jump to content
Sign in to follow this  
majorexperimental

Is there a code for "abandoned" vehicles?

Recommended Posts

Is there a way to exchange an "alive-list" like this --> {alive _x} count [T1, T2, T3, T4, T5,T6,T7,T8,T9,T10,T11,T12,T13] == 0 (trigger condition) to an "abandoned" vehicles list instead? Assume that the names of the vehicles is the same as the showed alive-list. How could the code look like?

Background: I have a task where vehicles T1, T2, T3, T4, T5,T6,T7,T8,T9,T10,T11,T12,T13 should be "stopped". The problem is that some vehicles don't explode; they only get abounded and it can be REALLY tricky to found those abounded vehicles and destroy the to complete the task.

Another solution may be to have a code that register the damage level where vehicles get abounded...

Share this post


Link to post
Share on other sites

You could have an OR condition being alive OR count of the vehicles crew is == 0

Share this post


Link to post
Share on other sites

I got a solution from SaOk:

{alive _x && {{alive _x} count crew _x > 0}} count [T1, T2, T3, T4, T5,T6,T7,T8,T9,T10,T11,T12,T13] == 0

Thanks SaOk!

Share this post


Link to post
Share on other sites

I usually use the canMove command to detect vehicles that have no driver, or is too damaged to move (however, canMove does not detect fuel levels.).

{canMove _x} count  [T1, T2, T3, T4, T5,T6,T7,T8,T9,T10,T11,T12,T13] == 0

Share this post


Link to post
Share on other sites
I usually use the canMove command to detect vehicles that have no driver, or is too damaged to move (however, canMove does not detect fuel levels.).

{canMove _x} count  [T1, T2, T3, T4, T5,T6,T7,T8,T9,T10,T11,T12,T13] == 0

{ canMove _x && { fuel _x > 0 } } count  [T1, T2, T3, T4, T5,T6,T7,T8,T9,T10,T11,T12,T13] == 0

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  

×