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
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
(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!!
Can I see a image how you set up your script area?