StartAction

From The Official Visionaire Studio: Adventure Game Engine Wiki

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)