OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gundernak 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
-
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
-
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.
-
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...
-
Do you mean a certain vehicle in particular or just any old vehicle?
-
I mean a certain vehicle, with own name, say vehicle01
-
"_X in vehicle01" count units Group01 >= 1
LCD OUT
-
This fits to this situation, thanks!
-
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. :)
-
thanks Mr BoDean,
but as I written I need this check in a script, I can not absolve this with trigger,...
-
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:
my simple question is how can I explain in the editor
and:
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 ;)
-
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