(06-11-2014, 05:35 PM)Neelke Wrote: Actually, another question. Is it possible to also check if an enemy is searching or hunting the player?
Just set up local (or global, if you're doing it across maps) variables. If you set up a local variable when the monster is spawned (and is therefore looking for the player), and set that variable to a number of your choosing, you can do a similar thing to what you did with the music.
In the script you have for the monster spawning, just add:
SetLocalVarInt(string& asName, int alVal);
Then you just have to set up a point where it checks for the variable (I'd do it by script box), and do the same check that Mudbill has kindly provided for the music.