Frictional Games Forum (read-only)
Why does grunts get alerted? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Why does grunts get alerted? (/thread-16281.html)



Why does grunts get alerted? - Hartmann - 06-18-2012

I have place two grunts in this map. But as soon as i enter they get alerted and start to growl.
What causes this? I havent wrote any script for them. and both of em are poofers


RE: Why does grunts get alerted? - Nice - 06-18-2012

thats because they are activated the moment you enter the map, since you didnt script them. The only way to "fix" this, is to set them as "inactive" and then make a script that activates them when you enter a zone or after a certain time


RE: Why does grunts get alerted? - SilentHideButFine - 06-19-2012

(06-18-2012, 08:26 PM)Hartmann Wrote: I have place two grunts in this map. But as soon as i enter they get alerted and start to growl.

What causes this? I havent wrote any script for them. and both of em are poofers



void OnStart()
{
AddEntityCollideCallback("Player", "SpawnMonster", "MonsterEvent", true, 1);
}
void
MonsterEvent
(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servent_grunt_1", true);
SetEntityActive("servent_grunt_2", true);
}

make sure the set the monster unactive on level editor!! Smile


RE: Why does grunts get alerted? - Stepper321 - 06-20-2012

Can I see a image how you set up your script area?