Originally Posted by
the_law
Here's the situation I'm trying to create: You are walking down a straight road when you are warned that a large enemy patrol is about to round the corner. You quickly find one of three hiding spots to hide in until the patrol passes.
Now my problem here is that regardless of where I am, I will fail the mission with the message from "stealth_failed". I already checked for mapping mistakes that may have caused this, and I cannot find such a mistake.
The problem is how you manage your triggers.
PHP Code:
level.visibleplaces = getentarray("getseen","targetname"); //If you touch these triggers, you have been "seen"
level.visibleplaces are multiply entities. So the following code doesn't work (you should have gotten error messages while testing this in developer mode):
PHP Code:
level.visibleplaces triggerOff();
level.visibleplaces waittill("trigger");
You could select all those entities and remove the trigger and add them all as one entity. Or if you already have them as one then you only need to change your code to 'getent'.
Otherwise with multiple entities you need to create a thread for each trigger.