Roll()

Syntax:

Roll( Angle, Time, Wait )

Parameters:

Angle – The angle to rotate the object by in degrees. If Angle is positive (e.g. 90), the object is rotated in a clockwise direction around the x-axis. If Angle is negative, the object is rotated in an anti-clockwise direction around the x-axis. This pararemter 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 will roll the specified object by the set angle over a time set in seconds. Every time you use this function, it will rotate the same amount set in Angle again.

image\Script_Button.jpgExamples