Skip to main content

dcs.clickable_action_performer()

dcs.clickable_action_performer(device_id, command[, value, ...])

This function creates a native-action to set the position of the clickable control specified by device_id and command in the cockpit to the specified value in DCS world. If multiple values are specified, they will be set to the position of the clickable control in the order they were provided. If value is not specified, the value of the event passed to the native action will be used.

The native-action created by function applies the same effect to the aircraft in flight as the ‘X: COCKPIT PERFORM CLICKABLE ACTION’ in the DCS World Mission Editor. Each argument provided to the function corresponds to the same parameters as in ‘X: COCKPIT PERFORM CLICKABLE ACTION'. For more details, refer to the DCS User Manual.

Parameters

ParameterTypeDescription
device_idnumberID value of the cockpit device manipulated by the required control. Device ID’s are described in DCS\Mods\aircrafts\ Aircraft Name\Cockpit\Scripts\devices.lua .
commandnumberThe command value for the required control. Command values are described in DCS\Mods\aircrafts\Aircraft Name\Cockpit\Scripts\clickabledata.lua.
valuenumberThe value representing the control position in the cockpit. If this parameter is not specified, the value of the event passed to the native action will be used.

Return Values

This function returns a native-action.

See Also