ScenEdit_SetAction (table)

This function Sets the attributes of an Event action.

The available operation/modes available are:

  • 'list' : dumps the Action currently installed
  • 'add' : adds a new Action
  • 'remove' : deletes the Action. The Action won't be deleted if it is in an Event.
  • 'update' : modifies the Action

Parameters

  • table {}
    • description = string Action GUID or Description
    • mode = string "add", "remove", "update", "list" Type of action to take on details
    • rename = or newname = string New Description for the Action. Applicable to mode 'update' only
    • type = string Type of Action. Applicable to mode 'add' only

Returns

table {} Table of action values (needs to be expanded )

Example
local action = ScenEdit_SetAction( { description='my action', mode = 'list' } )
print(action) -- list of action settings
local action = ScenEdit_SetAction( { description='my action', mode = 'remove' } )
print(action) -- list of the removed action settings