TRIGGERS

Trigger area management.

Availability: Client & Server

Methods


TRIGGERS.execute

client server

Manually execute a trigger's action by interface ID (server-side only)

Signature: action(str)

Parameters:

NameTypeDescription
idstrThe interface ID of the trigger to execute
GAME.TRIGGERS.execute(0);

TRIGGERS.getByInterface

client server

Get triggers that match a specific interface ID

Signature: obj[] action(str)

Parameters:

NameTypeDescription
idstrThe interface ID to filter by

Returns: obj[] - Array of matching trigger objects

obj[] byInterface = GAME.TRIGGERS.getByInterface(0);

TRIGGERS.list

client server

Get an array of all trigger zones in the map

Signature: obj[] action()

Returns: obj[] - Array of trigger objects

obj[] items = GAME.TRIGGERS.list();