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!!!!
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#5
RE: Monster Play Sound After PathNode!!!!

(02-14-2013, 04:14 PM)BeeKayK Wrote: 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

So you mean i can just make the same as on a Player 'if player walks on a script it activates an function' so you mean i can do it also with a monster Pathnode where the monster go's and then script file where its the end of his pathnode since there is the script file where he collides its activating a function that is activates a sound Big Grin

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
02-14-2013, 04:22 PM
Website Find


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



Users browsing this thread: 1 Guest(s)