onTrigger()
Set up a function to call when a given trigger fires in the IanniX score.
iannixin.onTrigger(triggerID, action)
Parameters
iannixin.onTrigger(triggerID, action)
| Parameter | Type | Default | Description |
|---|---|---|---|
triggerID |
int or str |
required | The ID of the trigger to listen for. |
action |
function |
required | The function to call; it receives three parameters, x, y, and z, the trigger's coordinates. |