FANDOM


BYOND Environment This page contains an entry from the official DM Reference.

FormatEdit

Move(NewLoc,Dir=0)


ReturnsEdit

1 on success; 0 on failure.


WhenEdit

Called to move the object. By default, client.Move() calls this proc when players use direction keys. The automated movement functions (like walk()) also call this proc. Directly setting the loc variable does not call this procedure.


ArgsEdit

NewLoc: The new location.
Dir: The direction of movement (or 0).


Default actionEdit

First call src.loc.Exit(). If that succeeds, call NewLoc.Enter(). If that succeeds, set src.loc to NewLoc. Otherwise call src.Bump() if there is a blockage. If dir is zero, re-orient the src to reflect the direction of motion; otherwise re-orient the src to the specified dir.

See alsoEdit