The Scale Command

Usage

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

Description

The scale creates a sign object containing the specified text. Only certain objects support the sign command. In order for sign to work, the object must have a polygon or polygons with a tag value of 100 to indicate where on the object the sign text should be placed. Horizontal signs are currently not supported.

X, Y, Z

The x, y, and z arguments specify the scale factor for each axis. If only x is provided, y and z values are set to x also. If x, y and z are zero values or all scaling factors are 1.0, the scale action command is ignored. Allowed minimum scaling factor is .2, 1/5th of the original size, and maximum scaling factor is 5, five times the original size.

Loop

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

Sync / Nosync

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

Reset / Noreset

The reset and noreset flags specify whether or not a scaled object returns immediately to its original size at the end of being scaled. The default is noreset.

Time

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

Wait

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

Smooth

The smooth option will cause the object to accelerate as it begins scaling, and decelerate as it nears the point where it will stop scaling. If you set time=3, the object will still scale for exactly 3 seconds and will still end up the exact same size, but its speed while scaling will change to make the scaling less "jerky".

Name

As with most other commands, you may choose to specify the name of another object to apply the scale action to by using the optional name parameter.

Global

A command with the Global argument appended will cause the object to scale globally for all users who have the object in view. Without the Global parameter, the object will scale exclusively for the person who activates the trigger (bump, activate, adone).

Examples

create scale 2

Instantly scales the object to be double the size on each axis.

create scale .5 1 .5 time=2 wait=1 smooth loop sync

Scales the object to half the size on x and z axis, yet keeps original height and loop scaling from 1 1 1 to .5 1 .5 in smooth mode syncronized to the universe clock, stops one second and repeats scaling.