FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Monster Play Sound After PathNode!!!!
It happens if you make it collide with a script area.
You must understand what the script does.
AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
This is the entity that collides with something. In your case, a monster.
This is the object that entity_1 collides with. In your case, a scriptarea
When the monster collides with the script area it will call the function:
SetEntityActive("Monster", false);
and
PlaySoundAtEntity("", "soundfile.snt", "Entity", 0, false);
Which you have probably used before
Trying is the first step to success.
|
|
02-14-2013, 04:14 PM |
|