Jump to content
Sign in to follow this  
Poison

MoveNPC Script Command (Move Map to Map)

Recommended Posts

How about making this script command move npcs map to map? What do you guys think?

 

*movenpc "<NPC name>",<x>,<y>{,<dir>},{<map>};

 

 

 

*movenpc "<NPC name>",<x>,<y>{,<dir>};

This command looks like the NPCWalkToxy function,but is a little different.

While NPCWalkToXY just makes the NPC 'walk' to the coordinates given
(which sometimes gives problems if the path isn't a straight line without
objects), this command just moves the NPC. It basically warps out and in
on the current and given spot. Direction can be used to change the NPC's
facing direction.

Example:

// This will move Bugga from to the coordinates 100,20 (if those
// coordinates are legit).
moveNPC "Bugga",100,20;
Edited by Poison

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.