Home   Help Search Login Register  

Author Topic: Convoy, joining groups etc.  (Read 455 times)

0 Members and 1 Guest are viewing this topic.

Knight_Sky

  • Guest
Convoy, joining groups etc.
« on: 30 Jan 2003, 19:36:28 »
Right heres what i want to happen.

I want the convoy to start in one place, drive down the road and meet with an armoured escort. The lot of them as a group are then to proceed to a final desitination.

I want an objective to go to complete when the convoy is destroyed.

Now here is my problem.

I set a Join waypoint for the convoy on top of the tanks, this part works. I have a  trigger goruped with the convoy so when none of the convoy are present, ie dead, the objective turns to complete. This part on its own also works. The trouble is when the convoy joins the tanks the game recognises that none of the group are there anymore becuase they are part of another group. The end result being you complete an objective without doing anything.

The things i have tried are. Well firstly i tried setting the tanks to join the convoy rather then the other way round. The tanks end up going to where the convoy originated before they return to formation. The other trouble is, the player has to destroy tanks as well as the ural convoy to complete his/her objective, i dont want this. All i want is when the trucks are dead the objective is done regardless of the tanks status.

If all else fails can some one tell me how to use the join command, ie
a join b
When i tried this it said it expected an array rather then an object. How do i put the group as an array?

Can any one help?

Cheers in advance
KS
« Last Edit: 30 Jan 2003, 19:37:18 by Knight_Sky »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Convoy, joining groups etc.
« Reply #1 on: 30 Jan 2003, 20:16:16 »
ah ha, think we can help you with this  :)


Give each truck in the convoy a name - truck1, truck2 etc

Give your convoy a "Join" waypoint

Give the escort a "Join and lead" waypoint
(or the other way around, whatever)

Synchro these two waypoints.   The joint group will follow the subsequant WPs of whoever had Join and lead

Remember that the total number of dudes in a group can't exceed 12, so maybe you could have 6 trucks (=6 drivers) and 2 tanks (each have a crew of 3)  6+3+3=12

Make a big trigger, type End#1.    This is going to be your mission complete trigger.

In the condition field of the trigger you are going to put a list of conditions.   The condition will depend on exactly what you want to end the mission.      Look in the Editor's Depot for the Command Reference Manual and learn about the commands

alive
canmove

Say you wanted the mission to end when none of the trucks could move.    Then in the condition field you would have

(not (canmove truck1)) and (not (canmove truck2))

syntax not guaranteed, but you get the picture.    When none of the trucks can move the mission will end.   Alternatively you could end the mission when all the truck drivers are dead.    (If you name a vehicle truck1 then the driver is automatically named truck1D.)


Hope that helps!  :)




« Last Edit: 30 Jan 2003, 20:19:26 by macguba »
Plenty of reviewed ArmA missions for you to play

Knight_Sky

  • Guest
Re:Convoy, joining groups etc.
« Reply #2 on: 31 Jan 2003, 09:07:17 »
I reckon that just might do it, thank you kindly sir!