The Trigger library provides information about a trigger in a level.
Name | Type | Mode | Description |
---|---|---|---|
colour | Colour | RW | The colour for the trigger in the viewer. Setting this to nil will set it back to default. |
commands | Command[] | R | Commands for the trigger |
flags | number | R | |
number | number | R | Trigger number |
only_once | boolean | R | Whether the trigger only fires once |
position | Vector3 | R | Position in the world |
room | Room | R | Room in which the trigger is contained |
sector | Sector | R | Sector containing the trigger |
timer | number | R | |
type | string | R | Trigger type name |
visible | boolean | RW | Whether the trigger is visible in the viewer |