OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Rellikki on 10 Aug 2007, 20:18:26

Title: [SOLVED] Detecting player's detection when on same side as the guards...
Post 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.
Title: Re: Detecting player's detection when on same side as the guards...
Post by: Mandoble on 10 Aug 2007, 20:27:48
Use the trigger you have and []exec"Dotheyknowme.sqs" in the activation field

Code: [Select]
; Dotheyknowme.sqs
_knows = 0;
{_knows = _knows + (_x knowsabout player)}forEach boat_guards
?_knows == 0:exit
Hint "they know about me"
Title: Re: Detecting player's detection when on same side as the guards...
Post by: Rellikki on 10 Aug 2007, 20:57:38
Thanks, works perfectly.