Language

Map.addTrigger


Map.addTrigger(string id, int depth, int x, int y, int width, int height, bool once)

Description

Add a trigger to the map.

Parameters

id
Unique ID of the entity.
depth
The depth of the entity. Between 0 and 20.
x
X coordinate.
y
Y coordinate.
width
Width of the trigger.
height
Height of the trigger.
once
Set to true if the trigger should be fired only once.