Home   Help Search Login Register  

Author Topic: Check whether group is in vehicle?  (Read 482 times)

0 Members and 2 Guests are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Check whether group is in vehicle?
« on: 22 Nov 2004, 15:52:18 »
Hi! How do I check wheter a whole group is inside a vehicle?

I tried something like making a trigger linked to the group leader with "whole group" activation and then in the condition field I typed "this distance ural1 < 4". But that didn't work at all.

When all men are in the truck it's supposed to leave. Some of them might have been killed so it might just as well be one or two guys who get in rather than a whole group.

thx yer the best!
Weeee...

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Check whether group is in vehicle?
« Reply #1 on: 22 Nov 2004, 15:58:59 »
Try naming your group, put this in the init of the commander of the group,

Mygrp = Group This

Then asking in the condition of your trigger,

Mygrp in Ural

or the other way,

not (Mygrp in Ural)

To see if they are not in it.

You must have named the vehicle first. I called mine, Ural.
« Last Edit: 22 Nov 2004, 16:00:25 by The-Architect »
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Check whether group is in vehicle?
« Reply #2 on: 22 Nov 2004, 17:12:28 »
Or, if that doesn't work

"alive _x" count units myGrp == "_x in Ural1" count units myGrp

Syntax not guaranteed.     I would suggest naming the truck something other than "ural".    Using words that occur in the game can sometimes lead to problems.
Plenty of reviewed ArmA missions for you to play

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Check whether group is in vehicle?
« Reply #3 on: 22 Nov 2004, 19:55:52 »
That last one worked. Thx both!
Weeee...

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Check whether group is in vehicle?
« Reply #4 on: 22 Nov 2004, 21:01:15 »
well i have a question somewhat like that, I have a chopper with waypoints and I want it to  stop on a certain waypoint and wait untill the player gets in and then continue on its waypoints. how would I do that?
thanks

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Check whether group is in vehicle?
« Reply #5 on: 22 Nov 2004, 21:06:09 »
Make a trigger syncrinized to the waypoint, in the trigger condition field put:

player in chopper

Where chopper is the name of the helicopter.