OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: D007 on 14 Aug 2008, 02:13:21
-
I hope that topic makes sense..lol..
I'm trying to set a trigger to go off when any player is in the trigger.
The players are not grouped though.
So I can't group them to the trigger and say "any group member".
Is there a way to say if any one of the players,
from man1 to man20, enter the trigger area, it goes off?
without grouping them?
thanks a bunch. :)
-
I wonder if it is possible to synch that trigger to each man individually?
-
well, thats something to try I guess :scratch:
Oh, also, is there a way to have a trigger go off repeatedly as long as someone is inside it?
I need it to loop it's self and not need a man to leave and re enter the trigger are.
So it goes off when u reach it, then continues to reactivate every 30 seconds, until you leave it?
I keep trying stuff, checking the comref and biki, but I can't find anything on it ><..
thanks again.. :)
-
Set the trigger for presence of the corresponding side, in condition put:
this && (({isPlayer _x} count thisList) > 0)
-
Excellent. ty Mando.
We'll try it out now. :)
Edit: I should of also mentioned.
The trigger covers an area that has my side already occupying it.
There are blufor Ai's in it at all times..
I need it to only go off if any one of the players enter.
but not if it's only blufor AI in the area..
So maybe then I can just remove the "this" condition and go with the individual player line you put up there..
We'll try that..
-
Mando's solution allows for your requirement, since it asks for both someone to be in the trigger (this) and that one or more of those people are players.
Logically,
this && (({isPlayer _x} count thisList) > 0)
is exactly equivalent to
({isPlayer _x} count thisList) > 0
Since, for anything to be in thisList, this must already be true.