Move: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Sleepy E (talk | contribs)
Added a page for the move building command
 
Sleepy E (talk | contribs)
m Missing name and global in command syntax
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


==Usage==
==Usage==
     '''move''' X [Y] [Z] [''noloop OR loop''] [''nosync OR sync''] [''smooth''] [''noreset OR reset''] [ltm] [''wait='']  [''time='']  [''offset='']
     '''move''' X [Y] [Z] [''noloop OR loop''] [''nosync OR sync''] [''smooth''] [''noreset OR reset''] [ltm] [''wait='']  [''time='']  [''offset=''] [''name=''] [''global'']


==Arguments==
==Arguments==
Line 16: Line 16:
; Time : Time in seconds for the object to move one half of a full cycle.<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 1.0
; Time : Time in seconds for the object to move one half of a full cycle.<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 1.0
; Offset : Offset in seconds to apply to universe time when synchronizing.<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 0.0
; Offset : Offset in seconds to apply to universe time when synchronizing.<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 0.0
; Name : The name of the object(s) to initiate the command on (see [[Name]] for more information)<br>'''Default:''' Current object only
; Global : If set, this will cause a trigger (e.g. activate, adone) to initiate this command for all users have the object in view. Otherwise, the command will be initiated only for the user who activates the trigger<br>'''Default:''' Not set


==Example==
==Example==
  create move 0 10 0 loop smooth time=5 wait=3
  create move 0 10 0 smooth time=5 wait=3 loop
 
Move the object smoothly 10 meters up (5 seconds to complete), wait 3 seconds, move object smoothly 10 meters down (5 seconds to complete), wait 3 seconds, repeat (Loop).
 
activate move 10 0 0 ltm time=3 wait=1 reset global
 
When clicked, move the object 10 meters along its (Ltm) X-axis (3 seconds to complete), wait 1 second, snap back to original position (Reset), do not repeat. This is done for all users who see the object.


{{Build}}
{{Build}}
[[Category: Script commands]]
[[Category: Script commands]]

Latest revision as of 16:17, 26 July 2018

Move
Build required N/A
Version required 0.3.19


The move command animates the position of an object.

Usage

   move X [Y] [Z] [noloop OR loop] [nosync OR sync] [smooth] [noreset OR reset] [ltm] [wait=]  [time=]  [offset=] [name=] [global]

Arguments

X Y Z
The X, Y and Z distance in meters that the object will move (and back from). Movement goes along the world axis, unless Ltm is set. Need to specify at minimum X.
Default: Y is 0.0, Z is 0.0
Noloop OR Loop
Continue looping after having moved to (and back) the given distance.
Default: Noloop
Nosync OR Sync
Make the object appear in the same position for all users by synchronizing its movement with the universe time.
Default: Nosync
Smooth
Smoothly accelerate and decelerate the movement.
Default: Not applied
Noreset OR Reset
Move back or reset position after completing half a cycle.
Default: Noreset
Ltm
Move along the object axis, not the world axis.
Default: Not applied
Wait
Time in seconds to wait before continuing movement after one half of a cycle.
Values: Decimal numbers greater than 0.0
Default: 0.0
Time
Time in seconds for the object to move one half of a full cycle.
Values: Decimal numbers greater than 0.0
Default: 1.0
Offset
Offset in seconds to apply to universe time when synchronizing.
Values: Decimal numbers greater than 0.0
Default: 0.0
Name
The name of the object(s) to initiate the command on (see Name for more information)
Default: Current object only
Global
If set, this will cause a trigger (e.g. activate, adone) to initiate this command for all users have the object in view. Otherwise, the command will be initiated only for the user who activates the trigger
Default: Not set

Example

create move 0 10 0 smooth time=5 wait=3 loop

Move the object smoothly 10 meters up (5 seconds to complete), wait 3 seconds, move object smoothly 10 meters down (5 seconds to complete), wait 3 seconds, repeat (Loop).

activate move 10 0 0 ltm time=3 wait=1 reset global

When clicked, move the object 10 meters along its (Ltm) X-axis (3 seconds to complete), wait 1 second, snap back to original position (Reset), do not repeat. This is done for all users who see the object.

Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb