Activate: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Edited out stuff directly copied from another wiki, this should not happen ... O_O
 
Line 1: Line 1:
{{feature|N/A|N/A}}
{{feature|N/A|N/A}}


The '''activate''' trigger will activate when an object is clicked by the [[user]].
The '''activate''' trigger will activate when an object is clicked by the user.


==Usage==
==Usage==
'''activate''' ''([command1], [command2], [...]);''
activate [command1], [command2], [mode commands]; [other trigger]


==Example==
==Example==
  activate [[move]] 5 6 5, [[noise]] water3, [[light]] color=blue;
  activate [[move]] 5 6 5, [[light]] color=blue;
When the object with this code is clicked, it will move the object accordingly, play the sound file ''water3'' once, and emit a blue light.
When the object with this action is clicked, it will move the object and start emitting a blue light.
 
activate lock owners=1, rotate 7.5 time=2 wait=5 global
When this object is clicked by the citizen ''AWLD'' (#1), the object will rotate 90 degrees and back. Otherwise, nothing will happen.


{{Build}}
{{Build}}
[[Category: Script triggers]]
[[Category: Script triggers]]
[[nl:Trigger:Activate]]

Latest revision as of 19:29, 15 November 2012

Activate
[[Image:{{{4}}}|center|middle|200x200px]]
{{{5}}}
Build required N/A
Version required N/A


The activate trigger will activate when an object is clicked by the user.

Usage

activate [command1], [command2], [mode commands]; [other trigger]

Example

activate move 5 6 5, light color=blue;

When the object with this action is clicked, it will move the object and start emitting a blue light.

Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb