<div dir="ltr"><div>I was talking to RMZ about how to unstick NPCs that get stuck when their speed <br>changes while moving. I know Pepsi has had to do a ton if this sort of thing too.<br><br></div>I came up with:<br><div><pre>script, snap npc, arg, begin
  # Kill current movement
  walk NPC(arg, west, 0) # x axis
  walk NPC(arg, north, 0) # y axis
  # reset NPC to current tile
  put NPC(arg, NPC x(arg), NPC y(arg))
end</pre>And I was thinking this is probably common enough that it should be done with standard commands.<br><br></div><div>Maybe a built-in "snap NPC" command? Or maybe an optional argument to "put NPC" that can kill current momentum?<br><br></div><div>Thoughts?<br><br>---<br></div><div>James <br></div></div>