Home   Help Search Login Register  

Author Topic: [SOLVED] Detecting player's detection when on same side as the guards...  (Read 886 times)

0 Members and 1 Guest are viewing this topic.

Offline Rellikki

  • Members
  • *
  • Die-hard OFP player
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.
« Last Edit: 10 Aug 2007, 20:58:00 by Rellikki »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
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"

Offline Rellikki

  • Members
  • *
  • Die-hard OFP player
Thanks, works perfectly.