Function: MoveToLocation(spawn, x, y, z, speed, lua_function, more_points, use_nav_path)
Description: Adds a running destination for the supplied spawn. Points can be batched and can optionally use native navigation paths.
Parameters:
spawn(Spawn): the actor to move.x,y,z(number): destination coordinates.speed(number, optional): movement speed. Zero or omission uses the spawn's current speed; a resulting zero speed adds no movement.lua_function(string, optional): callback name associated with this point; an empty string selects no callback.more_points(boolean, optional): true batches this point with more points; false or omission finishes the batch.use_nav_path(boolean, optional): true requests native path navigation; false or omission uses ordinary running locations.
Returns: None.
Navigation ownership: Native navigation registers the original actor allocation and retains an actor loan while preparing or executing commands. Runtime ID or address reuse cannot redirect queued work to a replacement spawn. Path commands are prepared before replacing the current command plan; failed preparation preserves the published plan, and an older request cannot overwrite newer movement queued during its callbacks. Registry and command-metadata locks are released before movement or path-service callbacks.