StartAction
From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 17:12, 22 November 2013 by Vis apiuser (talk)
startAction
Available since: v3.0
Starts an action. If the action is already running a new active action for the action data object is started.
Lua Syntax:
startAction(action)
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:
startAction("Scenes[scene_name].SceneObjects[object_name].SceneActions[action_name]")
Example 2:
local act = getObject("Actions[action_name]")
startAction(act)