SetScale()

Syntax:

SetScale(Horizontal, Vertical, Time, Wait )

Parameters:

Horizontal – Enter a number (the scale factor) to scale the horizontal size of the specified object. If the number of Horizontal is 2.0, the specified objects horizontal size will be 200% larger than the original size, while the number 0.5 will make it 50% of the original size. This parameter is required.

Vertical – Ienter a number (the scale factor) to scale the vertical size of the specified object. If the number of Vertical is 2.0, the specified object will be 200% larger than the original size, while the number 0.5 will make it 50% of the original size. This parameter is required.

Time – the time period in seconds. This parameter is optional. The default value is 0.0 seconds.

Wait – Wait for this script command to complete before moving to the next script command, or not to wait. Wait is either true or false. If Wait is true, the script pauses until this animation is completed before continuing to the next line of the script. If Wait is false, the script will process the next line of script immediately. This parameter is optional. The default value is true.

Remarks:

This function sets the specified Objects horizontal and vertical scale to the amount set in Horizontal and Vertical over a specified time. The Time parameter is optional.

image\Script_Button.jpgExamples