Home   Help Search Login Register  

Author Topic: Any unit of a team?  (Read 968 times)

0 Members and 1 Guest are viewing this topic.

gundernak

  • Guest
Any unit of a team?
« on: 25 Sep 2003, 17:30:53 »
Hi everyone,

my simple question is how can I explain in the editor 'any unit of a certain team'?

So I have a condition, which can be fulfilled by any unit of a team...not every unit, but any of them

thanks in advance

andris

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Any unit of a team?
« Reply #1 on: 25 Sep 2003, 18:20:13 »
Create a group.   Create a trigger.    Group the trigger to the group leader, as if it was just another loon.     Open up the trigger.    You will now find new options in the Activation box.

If the Activation box thing doesn't work for you, then you need the count command.   Syntax definitely not guaranteed, but something like this

Condition:    ("_x command" count units grp1) >=1
« Last Edit: 25 Sep 2003, 18:20:43 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Any unit of a team?
« Reply #2 on: 25 Sep 2003, 18:25:57 »
Yup, something like that. You have to be more specific though. The count command is your best bet, but it's got so many uses that it might be a bit hard for us to just guess what it is you want  ;)

So give us some extra info about what exactly it is you want done, and we'll see what we can do. :toocool:

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

gundernak

  • Guest
Re:Any unit of a team?
« Reply #3 on: 25 Sep 2003, 19:11:37 »
ok, sorry, a little clearer..

I have a situation when a sound message will be played if any member of my group  is in a vehicle...

I put this situation in a script and I had to write as much conditions as many group member I have...

So I tought there is a more simple way to gather these conditions to one condition, if I got the expression which tells 'any member of the group'

You know there are so many expressions similar, like 'leader Group01', or 'foreach units Group01'...actually foreach means EVERY not ANY...


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Any unit of a team?
« Reply #4 on: 25 Sep 2003, 19:33:49 »
Do you mean a certain vehicle in particular or just any old vehicle?
Plenty of reviewed ArmA missions for you to play

gundernak

  • Guest
Re:Any unit of a team?
« Reply #5 on: 25 Sep 2003, 19:56:53 »
I mean a certain vehicle, with own name, say vehicle01

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Any unit of a team?
« Reply #6 on: 25 Sep 2003, 20:26:02 »
"_X in  vehicle01" count units Group01 >= 1

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gundernak

  • Guest
Re:Any unit of a team?
« Reply #7 on: 25 Sep 2003, 21:47:45 »
This fits to this situation, thanks!

Mr.BoDean

  • Guest
Re:Any unit of a team?
« Reply #8 on: 25 Sep 2003, 22:00:14 »
I mean a certain vehicle, with own name, say vehicle01

Ya , gundy, you can also just do what Mac said above, grouping a trigger to the specific vehicle. the Activation box will allow you to choose VEHICLE, GROUP LEADER, ANY MEMBER OF GROUP, etc. This even works for empty vehicles, but it's always a good idea to name them.   ;)  Plus, you could use the invehicle command as a check.  :)

gundernak

  • Guest
Re:Any unit of a team?
« Reply #9 on: 25 Sep 2003, 22:31:20 »
thanks Mr BoDean,

but as I written I need this check in a script, I can not absolve this with trigger,...

Mr.BoDean

  • Guest
Re:Any unit of a team?
« Reply #10 on: 25 Sep 2003, 23:15:46 »
thanks Mr BoDean,

but as I written I need this check in a script, I can not absolve this with trigger,...

OK, I see... I guess I just read the parts that said:


Quote
my simple question is how can I explain in the editor


and:

Quote
So I tought there is a more simple way ...which tells 'any member of the group'

so I didn't realize it required a script   ;)




Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Any unit of a team?
« Reply #11 on: 25 Sep 2003, 23:43:37 »
ma line works in triger n in script - dats meen it perfect :P

@ gundernak

solve da thread - if ur prob is over ;) - keeps da forums clean off pointless postin ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta