Home   Help Search Login Register  

Author Topic: how to give same wp, to a new chopper  (Read 952 times)

0 Members and 1 Guest are viewing this topic.

nam_viet

  • Guest
how to give same wp, to a new chopper
« on: 04 Dec 2003, 15:27:16 »
what I try to do:

(in bad english)

      I have 6  ai soldier group
      I have 6  ai  huey chopper  (each chopper in different group)

     chopper WP;  move>load>move>unload>move>disenbark

     soldider WP;  move>board>move>getout>move

    load and board are synchronised
    unload and getout  are synchronised

  like an hurry evacution

Everything underfire vietcong unit,   and work fine : ;D

now the problem:

Sometime ai chopper die before pick up (hit or chash on tree)

that's Ok  for realism  ;D

Now I want to make a trigger or  little script who detect  the chopper dead or not able to pick up      
 and active  a new chopper (waiting in safe base) to make the same job
 who will use the same WP  chopper dead .

I read somewhere a thing about gamelogic and groupcolor  or  alfa delta...assign  but  i can't find this topic.

Can someone help me for that ?

thx






   
« Last Edit: 04 Dec 2003, 17:08:29 by nam_viet »

gundernak

  • Guest
Re:how to give same wp, to a new chopper
« Reply #1 on: 04 Dec 2003, 22:32:47 »
why do not you make own waypoints for the other chopper aside so close to the waypionts of the chopper which can be downed.

If you have a trigger with condition: not alive chopper01, you can synchronize it with the reinforcement chopper's first waypoint.

And the reinf chopper will fly where you want after the condition fulfilled...


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:how to give same wp, to a new chopper
« Reply #2 on: 05 Dec 2003, 00:36:19 »
To assign group colour use the command setGroupId.   The online version of the official command reference in the Ed Depot has a list of the colours and letters.

I don't think you can get a second chopper to follow the waypoints of the first.    The first one could be shot down at any time, so you don't know what waypoints are "missing":   if the waypoints have already been completed by the first chopper then the second one cannot use them.   I think you need a set of waypoints for each chopper.
Plenty of reviewed ArmA missions for you to play

nam_viet

  • Guest
Re:how to give same wp, to a new chopper
« Reply #3 on: 05 Dec 2003, 14:14:44 »
yes, so
i'll try  the  Gundernak 's solution.

will tell you if works or not    ;)

nam_viet

  • Guest
Re:how to give same wp, to a new chopper
« Reply #4 on: 05 Dec 2003, 14:54:41 »
well,
it doesnt work.
the ai soldier move to the base by foot, and  the reinforcement chopper's  wait  them to H,  

 i tryed also  to put in an activation triger :  "_x assignascargo h1bis" foreach units gr1; "[_x] ordergetin true" foreach units gr1

but nothing hapened.
 ??? ??? ???

gundernak

  • Guest
Re:how to give same wp, to a new chopper
« Reply #5 on: 06 Dec 2003, 00:35:08 »
at first check your syntax (names, commands)

Let there be the reinf chopper and the infantry goup in different groups.

Instead of 'assignAsCargo' use:  "_x moveInCargo h1bis" forEach units gr1
You can put this to the leader's init field (off course after you have put: 'gr1 = group this').

Then, as I wrote you have to built a series of waypoints for the reinf chopper, but at least two.

You need a trigger size does not matter, activation: none, type: none, condition field: not alive 1stChopperName or not canMove 1stChopperName.

And synchronize this trigger to the reinf chopper's first waypoint.

Based on this:
the group will start the mission IN the chopper, the chopper will get off and levitate in the air( ;)sorry I can't explain now better in english), until the trigger condition fulfilled...The condition will be fulfilled if the chopper is crashed, hit, or the pilot is dead...
If you want the reinf chopper not to start the rotors and get off until the conditions fulfilled, put this into chopper's init field: this setFuel 0. And put this into the trigger 'on activation' field: h1bis setFuel 1