Results 1 to 4 of 4

  Click here to go to the first Developer post in this thread.  

Thread: How would i cancel waypoints

  1. #1
    How would I cancel waypoints when a trigger condition is met and send unit to the last or another waypoint. Basically ignoring unload waypoints for a vehicle.

    Scenario: Two sets of soldiers showing up in UAZ's at separate times. If first set is killed before second set arrives then second set see's the dead first set and cancels unload turns around and high tails it outa there to either coordinates or another waypoint.

    I tried !alive and domove, didn't work.

    Thank God for forums. Many thanks.

  2.   This is the last Developer post in this thread.   #2

    Angry

    Okay, I'm not completely sure about this one but:

    create a trigger, inside the condition Field put:</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">&#33;&#40;alive soldier1&#41; && &#33;&#40;alive soldier2&#41; && .....[/QUOTE]<span id='postcolor'>

    ... means repeat for more soldiers

    in the onActivation field put </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> &#91;group UAZ2, 2&#93; setWPPos getMarkerPos &#34;runaway&#34;; UAZ2 setSpeedMode &#34;FULL&#34;; group UAZ2 setCombatMode &#34;RED&#34;; group UAZ2 setBehaviour &#34;COMBAT&#34;; group UAZ2 lockWP true;
    [/QUOTE]<span id='postcolor'>

    the 2 in [group UAZ2, 2] specifies the waypoint number for the transport unload waypoint. (just count)
    runaway should be an empty marker that you call runaway
    somewhere where you want the UAZ2 to run to.
    SO, this assumes you call the uazs UAZ1 and UAZ2, and soldiers in UAZ1; soldier1 soldier2 .....

    Well there might be some details u may have to resolve but this is one way of doing it

    EDIT: instead of doing setWPPos you could probably do </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">UAZ2 move getPos runaway;

    [/QUOTE]<span id='postcolor'>



    "Peace can not be kept by force. It can only be achieved by understanding." Albert Einstein

    Please report Arma 3 bugs in the Bug Tracker

  3. #3
    LOL &#33;&#33;&#33; Whats all that mess bn880 ?

    All you have to do is switch the waypoint. Here&#39;s how-

    Make your trigger (of type "switch") with condition-
    not (alive soldier1) and not (alive soldier2)

    sync the trigger with your unload waypoint. If the soldiers are killed, it will switch the waypoint from the unload to the next move waypoint...thats it &#33;

  4. #4
    I&#39;ll try both. Actually I think bn880&#39;s would be a better solution for this situation since there are two waypoints a get out and a move after the unload and before the "runaway" waypoint. I believe the switch type would cancel the unload but the driver would get out and continue to the other waypoints unwanted waypoints. The switch type would be perfect if there was only one waypoint after the unload.

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •