Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
gore

Trigger condition

Recommended Posts

Ok i have 3 units, 2 men (x,y) and a hjelicopter (z).

Could someone wright what should be in the trigger "condition" so that the trigger activates when the 2 men (x,y) are on board or in the cargo of the helicopter (z) ? Thanks in advance wink.gif

Share this post


Link to post
Share on other sites

The two soldier both need Get In waypoints synchronized with the helo's Load waypoint.

On Soldier X's Get In waypoint put

xin=true

in the On Activation slot

for Soldier Y put

yin=true

then set the next helo waypoint and for the Condition put

xin; yin

Share this post


Link to post
Share on other sites

Yea but i have two helicopters one for evacuation one for the end of the mission so id have to have the way point going to the rescue and then one continuing on to the end mission helo trip and that wouldin work would it? what i thought i could do is have the helicopter waypoint "load" and then when the units got in, the the trigger (with the condition in the first post) would activate and the helicopter would continue to the next way point ? any better ideas are welcome?

Share this post


Link to post
Share on other sites

Try the following condition:

(x In z) AND (y In z)

The "In" command checks if a unit is in a vehicle

unit In vehicle

It can also be used to check if a variable is contained in an array

4 In [1, "A", 5, 4] ---> true

Hope this helps,

Spinor

Share this post


Link to post
Share on other sites

Yea that worked perfectly but i just realised that if say Y is dead the heicopter wont fly away. i thougt that If you had somthing like (x In z) AND (yDammage<.9= true y In z) ie y in z on the condition hes alive,could someone wright a corect version of that would be great or tell me if theres an easier way of doing it confused.gif

Share this post


Link to post
Share on other sites

and if i want someone to get in a emty vehicle

i know to use moveincargo but when i use that on a waypoint in the activation field the unit just disapears in the tank instead of seeing him step in

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (gore @ Aug. 12 2002,18:24)</td></tr><tr><td id="QUOTE">(x In z) AND (yDammage<.9= true y In z) ie y in z on the condition hes alive,could someone wright a corect version of that<span id='postcolor'>

I think following should do the job:

((x in z) or (not alive x)) and ((y in z) or (not alive y))

Share this post


Link to post
Share on other sites

Thanks suma that worked perfectly!! biggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifsmile.gifsmile.gifsmile.gifsmile.gifsmile.gifsmile.gifsmile.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gifbiggrin.gif

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  

×