Difference between revisions of "StartAction"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 24: Line 24:
 
startAction(act)
 
startAction(act)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:Player Commands]]

Revision as of 14:57, 26 November 2013

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)