Browse docsoutput.set_trigger
On this page
API method

output.set_trigger

Overrides L2/R2 pressure for this packet, clamped to 0 through 100.

Syntax

Atlas Script
output.set_trigger(trigger, value)

Parameters

trigger
Trigger selector or platform trigger constant that identifies the trigger to read or change.
value
Value written, converted, or evaluated by this method. Its required type and range are described in Remarks.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Overrides L2/R2 pressure for this packet, clamped to 0 through 100. Use a quoted name or a qualified name string such as ps5.l2. Boolean true converts numerically to 1 percent, not 100; use 100 for full pressure.

Examples

Hold a trigger without blocking passthrough.atlas
event on_input() {
    if (input.held("L1")) {
        output.set_trigger("R2", 100);
    }
}
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.