Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does grunts get alerted?
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#1
Why does grunts get alerted?

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
06-18-2012, 08:26 PM
Find
Nice Offline
Posting Freak

Posts: 3,812
Threads: 37
Joined: Jan 2012
Reputation: 153
#2
RE: Why does grunts get alerted?

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


Sorry but we cannot change your avatar as the new avatar you specified is too big. The maximum dimensions are 80x80 (width x height)
(This post was last modified: 06-18-2012, 08:52 PM by Nice.)
06-18-2012, 08:51 PM
Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#3
RE: Why does grunts get alerted?

(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

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
06-19-2012, 10:47 AM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#4
RE: Why does grunts get alerted?

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

Signature to awesome to be displayed.
06-20-2012, 02:33 PM
Find




Users browsing this thread: 2 Guest(s)