(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!!