Home   Help Search Login Register  

Author Topic: group in chopper  (Read 774 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
group in chopper
« on: 24 May 2004, 00:43:08 »
How do you check whether all live units in a group are in a vehicle?

Dubieman

  • Guest
Re:group in chopper
« Reply #1 on: 24 May 2004, 02:51:14 »
Maybe a script that has a question or something of the like...

_group = _this select 0
#inside
?(group in chopper) goto "IN"
#IN
hint "Units are on the chopper, good luck."
exit


Something to that effect. I haven't scripted in monthes so the syntax definitely not garunteed so someone should fix this.  :P ::)

Offline nEO iNC

  • Contributing Member
  • **
Re:group in chopper
« Reply #2 on: 24 May 2004, 08:36:57 »
Hey guys, you could do something like this in a script if you're using waypoints;

_heli = _this select 0
_grp = _this select 1

_heli land "get in"
_heli lockwp true
#wait
_helicount = count (crew _heli)
_groupcount = count (units group _grp)
~1
?_helicount != (_groupcount + 2) : goto "wait"
_heli lockwp false
exit
« Last Edit: 24 May 2004, 08:37:26 by nEO iNC »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:group in chopper
« Reply #3 on: 24 May 2004, 11:00:43 »
No need for scripts...

You just make a trigger with condition:
"_x in vehicleName" count (units group player) == count (units group player)

And on activation what you need...

That would of course check only the players group, but the same syntax applies to other units as well..
« Last Edit: 24 May 2004, 11:04:48 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

gadolinite

  • Guest
Re:group in chopper
« Reply #4 on: 25 May 2004, 01:03:00 »
thanks guys