mob
on_step
new()
..()
sound() = pick("sound1","sound2")
ID:155305
![]() Aug 2 2011, 11:32 am
|
|
okay im thinking of makeing something along the lines of this script but it actualy works
|
Lugia319 wrote:
You want to modify it a bit. Also you're trying to set a procedure equal to a value. Pretty sure that doesn't work. > mob Note: Any time a mob moves, this will be called. Player or NPC. You would want to note, if you called mob.Move() to relocate the player, this would call the sounds to play. (i.e moving to a new map or teleporting) To get around this, you would want to have an argument set i.e Sound=1, and set it to 0 on calls to this that you do not want to make a sound. |
Pirion wrote:
Lugia319 wrote: > > mob Note: Any time a mob moves, this will be called. Player or NPC. k thx guys |
I make the assumption that on_step() is a special procedure that you created
Note: Any time a mob moves, this will be called. Player or NPC.