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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster Play Sound After PathNode!!!!
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
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.
(This post was last modified: 02-14-2013, 04:14 PM by FlawlessHappiness.)
02-14-2013, 04:14 PM
Find


Messages In This Thread
RE: Monster Play Sound After PathNode!!!! - by FlawlessHappiness - 02-14-2013, 04:14 PM



Users browsing this thread: 1 Guest(s)