Home   Help Search Login Register  

Author Topic: naming a group  (Read 515 times)

0 Members and 1 Guest are viewing this topic.

skimmer8824

  • Guest
naming a group
« on: 21 Dec 2004, 22:34:08 »
what do i put in the commanders init to name the whole group?

thx

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:naming a group
« Reply #1 on: 21 Dec 2004, 22:40:00 »
GrpName = group this

Put it in the init field of ANY member of the group
« Last Edit: 21 Dec 2004, 22:40:12 by THobson »

skimmer8824

  • Guest
Re:naming a group
« Reply #2 on: 21 Dec 2004, 23:09:42 »
what i wanna do might be a little too advanced for me but say i have a convoy with a full squad in each truck and a small 3 man squad in each hummer with a medic. if the convoy comes under fire how could i make the convoy stop and have the 3 man squad get out and support the trucks?

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:naming a group
« Reply #3 on: 22 Dec 2004, 02:29:53 »
It's not very advanced, I'm sure you can do it:

1) Name your hummers: hummer1, hummer2 and hummer3. Place an eventhandler in the Hummers init field:

this addEventHandler ["hit",{TAKINGHITS=true}]

2) Name all the individual units in the hummers. For example: h1, h2, h3, et cetera.

3) In the init fields of h1, h2, h3 et cetera you write: h1 assignAsCargo hummer1, h2 assignAsCargo hummer1, and so on...

4) Place h1, h2, h3 et cetera in the hummers using the moveinCargo command.

5) Make a trigger. Condition: TAKINGHITS (the variable you get from the eventhandler in number 1 above)

6) In the activation field of the same trigger you write: [h1,h2,h3] orderGetin false; hummer1 stop; hummer2 stop; hummer3 stop

When the Hummers registers damage (from bullets or grenades or whatever) the soldiers will emerge from the vehicles. If you set them on a guard waypoint before you move them into the hummers they will still be in guard mode when they disembark.

When you think they've done enough "supporting the trucks" you can just make them getin again using [h1,h2,h3] orderGetin true.

This example assumes that your 3 man squads is just riding in the hummers, not driving them.

Hope that'll help you, good luck  8)
OFPEC | Intel Depot
RETARDED Ooops... Retired!

skimmer8824

  • Guest
Re:naming a group
« Reply #4 on: 22 Dec 2004, 19:12:57 »
yes thats exactly what i was looing for, thanks a lot