|
|
Line 1: |
Line 1: |
− | ==startAction==
| + | #REDIRECT [[Global Command: startAction]] |
− | | |
− | <div class="command-min-version-info">Available since: <span class="command-min-version">v3.0</span></div>
| |
− | | |
− | <div class="command-doc">Starts an action. If the action is already running a new active action for the action data object is started.</div>
| |
− | | |
− | Lua Syntax:
| |
− | <pre class="command-syntax">startAction(action)</pre>
| |
− | ===Arguments===
| |
− | ====action====
| |
− | :'''"object path"|"object id"|object''' - Visionaire object which specifies an action.
| |
− | ===Flags===
| |
− | ===Return Values===
| |
− | ;visionaireObject
| |
− | :The visionaire object representing the active action.
| |
− | ===Examples===
| |
− | Example 1:
| |
− | <syntaxhighlight>
| |
− | startAction("Scenes[scene_name].SceneObjects[object_name].SceneActions[action_name]") | |
− | </syntaxhighlight>
| |
− | Example 2:
| |
− | <syntaxhighlight>
| |
− | local act = getObject("Actions[action_name]")
| |
− | startAction(act)
| |
− | </syntaxhighlight>
| |