Home   Help Search Login Register  

Author Topic: Assgining Group name  (Read 664 times)

0 Members and 1 Guest are viewing this topic.

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Assgining Group name
« on: 19 Jul 2004, 04:16:48 »
I'm trying to get an entire group to get out of a vehicle at the same time. The "Unload transport" WP is'nt what i need here. What i need to to know how to make it when the commander of the group gets out they all follow him. There is a way to assign a group name, but I can't find out how to do it...

unassignVehicle group is the syntax I want to use and works for the leader, but the others stay put...

Kaliyuga

  • Guest
Re:Assgining Group name
« Reply #1 on: 19 Jul 2004, 06:18:35 »
you can put this in the init line of one of the group members

g1=groupthis

(g1 whatever you want)

:cheers:

GrimMonkey

  • Guest
Re:Assgining Group name
« Reply #2 on: 19 Jul 2004, 06:19:37 »
Code: [Select]
GroupName = Group This
"GroupName" is obviously the name of group that you want. Now just use the group name to address the entire group.

This should be placed in the leader's Init. field.

I hope this helps.


Beware the GrimMonkey

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Re:Assgining Group name
« Reply #3 on: 19 Jul 2004, 08:03:01 »
Well that didn't work. This is what I'm putting in the init field of the leader this moveincargo h1;g1=groupthis and in his name field I put in cap.

Now if I don't name him nothing works, if I do only he is kicked out. In the trigger I had to use the unassign vehicle command for each one. putting unassignvehicle g1 did'nt work. And it only kicks the ai out 1 every second. I was hoping to kick them all out at once, or a steady flow.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Assgining Group name
« Reply #4 on: 19 Jul 2004, 08:16:06 »
You need a space between group and this.  Also the group name should be different from the name of the unit.

For example:  call him g1

in the init field put

Groupg = group this

Groupg is then the name of the group.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Assgining Group name
« Reply #5 on: 19 Jul 2004, 10:48:08 »
simple reason your unload waypoint isn't working, is because unload only unloads cargo of the vehicle who are also in the same group as the vehicle... try using a transport unload waypoint  ;)
Proud Member of the Volunteer Commando Battalion

micromike

  • Guest
Re:Assgining Group name
« Reply #6 on: 29 Aug 2004, 12:11:00 »
I have tried to check if group is DEAD
East officer's init field:   eastgrp = group this,
East officer is named: Leader

And in trigger condition field
not (alive eastgrp)

It does not work, Why?


thanks Micromike

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Assgining Group name
« Reply #7 on: 29 Aug 2004, 12:14:34 »
You can only check to see if a unit is dead not a group.  In other words you need to do a not alive check on each unit in the group
« Last Edit: 29 Aug 2004, 13:26:48 by THobson »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Assgining Group name
« Reply #8 on: 29 Aug 2004, 13:28:59 »
"alive _x" count units groupG == 0

Or something.

In general, commands that work on groups do not work on units, and vice versa.    ALWAYS check the syntax in the comref.
Plenty of reviewed ArmA missions for you to play

micromike

  • Guest
Re:Assgining Group name
« Reply #9 on: 30 Aug 2004, 19:16:43 »
thanks....Micromike.