.DT move_me_to DW_wibble creator help move_me_to .SH Name .SP 5 5 move_me_to - This method will move the npc to the specified destination. .EP .SH Syntax .SI 5 varargs void move_me_to(string dest, int delay) .EI .SH Parameters .SI 5 %^BOLD%^dest%^RESET%^ - the destination to go to %^BOLD%^delay%^RESET%^ - the time delay between each move .EI .SH Defined in .SI 5 /obj/monster.c .EI .SH Description .SP 5 5 This method will move the npc to the specified destination. The npc will walk from where they currently are to the destination using the time delay specified between the movements. If the location is reached then the function "stopped_route" will be called on the npc. The first arguement to the function will be 0 if the npc did not reach its destination and 1 if it did. .EP .SH Example 1 .SI 5 inherit "/obj/monster"; void go_home() { move_me_to(HOME_LOCATION, 2); } /* go_home() */ void stopped_route(int success) { if (success) { do_command("emote jumps for joy."); } else { do_command("emote looks sad and lost."); } } /* stopped_route() */ .EI .SH See also .SP 5 5 get_next_route_direction(), got_the_route(), query_last_route_direction(), query_following_route(), do_route_move() .EP