Skip to main content
Version: 9.0.2

gre.action_trigger

gre.action_trigger(name, args)

Trigger a Storyboard action by name with the provided arguments.

Parameters

ParameterTypeDescription
name#stringThe name of the action to invoke.
args#tableA table of parameters for the action.

Example

---
-- Trigger a gra.screen.path transition
-- @param #string screenName
function PathScreenTransition(screenName, duration)
local argNames = greconst.SCREEN_PATH_ACTION
gre.action_trigger(
"gra.screen.fade",
{
        [argNames.SCREEN]=screenName,
        [argNames.DURATION]=400,
        [argNames.FPS]=60,
        [argNames.LAYERS]="Delta",
    }
)
end