The Move Command


Usage

    move x y z [loop OR noloop] [sync OR nosync] [reset OR noreset] [time=time] [wait=wait] [name=name]

Description

Note: the reset option is new in Outerworlds 3.3 and requires 3.3 or later in order to function.

The move command causes an object to move smoothly from one location to another and then back again. The x, y, and z arguments are all required and specify the distance to move in the x, y, and z directions, in meters.

The loop and noloop flags specify whether or not the object stops after returning to its original position, or moves repeatedly back and forth between its starting and ending positions. The default is noloop.

The sync and nosync flags specify whether or not a looping mover is synchronized to the universe clock. This is useful if several moving objects need to be synchronized with each other, or a very slow moving object needs to be seen in the same position by all users. Since this flag is only meaningful for looping movers, if sync is specified then loop is also assumed. The default is nosync.

The reset and noreset flags (new in 3.3) specify whether or not a mover returns immediately to its starting position at the end of its move. The default is noreset.

The optional time argument specifies how long the object takes to move from start to finish, and from finish to start. The default is 1 second. Fractional seconds (e.g. "0.2") can be used.

The optional wait argument specifies how long a looping mover waits at either end of its journey, before moving back to the other location. The default is 0 seconds. Fractional seconds (e.g. "0.2") can be used.

As with most other commands, you can optionally specify the name of another object to apply the move action to.

Note that move is a special command and as such may not be available for use in all worlds.

Example

    create move -1 0 0 loop time=5 wait=3

This creates an object that moves 1 meter to the east in 5 seconds, waits there 3 seconds, returns to its original position, and then repeats the cycle.

    create move 0 50 0 loop time=10 reset

This creates an object that moves 50 meters straight up in 10 seconds. At the end of the move, it immediately returns to its original position and repeats the cycle.