mob |
Problem description:
How do i make it so that when i kill a mob it returns to their original spawn point and not the same as the players respawn point ( 1,1,1 )?
ID:139015
Aug 9 2011, 9:45 am
|
||
Code:
Problem description: How do i make it so that when i kill a mob it returns to their original spawn point and not the same as the players respawn point ( 1,1,1 )? | ||
Thanks! this seems to do it ,
But there is another problem , Then how will i restore other mobs into their spawns? or simply reuse this mob in another location , will i have to do this M.loc = for every single mob i put on the map ? o.o | ||
Nah, just set the variable to the monster like I did in my example. Then you just call M.loc=locate(spawn_x,spawn_y,spawn_z)in the deathcheck procedure. If the monster was killed, it will be sent to its spawn location.
| |
| |||
Just define a var, assign a number to it and locate them to it when they're killed.
Also, never use a colon : in a procedure. Use a period! Hope this helped.