gore 0 Posted August 12, 2002 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 Share this post Link to post Share on other sites
PFC Mongoose 0 Posted August 12, 2002 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
gore 0 Posted August 12, 2002 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
Spinor 0 Posted August 12, 2002 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
gore 0 Posted August 12, 2002 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 Share this post Link to post Share on other sites
VXR 9 Posted August 12, 2002 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
suma 8 Posted August 12, 2002 </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
gore 0 Posted August 12, 2002 Thanks suma that worked perfectly!! Share this post Link to post Share on other sites