OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Rellikki on 10 Aug 2007, 20:18:26
-
I have a trigger which covers some area of the map, and on it's activation there's boat_guards=thislist, so everyone in that trigger area are boat_guards. What would I need to put on other trigger's condition if I wanted to check if any of those boat_guards know about player's precense? I know, this could be done without any commands, just changing the trigger options a bit, but the player is in the same side as the boat_guards.
-
Use the trigger you have and []exec"Dotheyknowme.sqs" in the activation field
; Dotheyknowme.sqs
_knows = 0;
{_knows = _knows + (_x knowsabout player)}forEach boat_guards
?_knows == 0:exit
Hint "they know about me"
-
Thanks, works perfectly.