Game logic - Trigger zone – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
===Dynamic=== | ===Dynamic=== | ||
*Allows to change Trigger Zone [[Ylands Tile - Game logic position-rotation-scale|'''position / rotation / scale''']]. | *Allows to change Trigger Zone [[Ylands Tile - Game logic position-rotation-scale|'''position / rotation / scale''']]. | ||
*Dynamic Trigger Zone reacts only to players (technical limitations). | *'''Dynamic''' Trigger Zone reacts '''only''' to '''players''' (technical limitations). | ||
===Visible=== | ===Visible=== | ||
*Makes the Trigger zone boundaries visible | *Makes the Trigger zone boundaries visible even when in game. | ||
===Color=== | ===Color=== | ||
*Color of Trigger zone boundaries (when visible) | *Color of Trigger zone boundaries (when visible). | ||
===Is triggered by=== | ===Is triggered by=== | ||
*Setup what kind of entity passing the area will fire the trigger. | *Setup what kind of entity passing the area will fire the trigger. | ||
**Any animal / item / player /projectile | **Any animal / item / player /projectile. | ||
**Entity type - after picking an entity, any instance of this entity will fire trigger | **Entity type - after picking an entity, any instance of this entity will fire trigger. | ||
**Specific entity - after picking an entity, only this specific instance (ID) will fire trigger | **Specific entity - after picking an entity, only this specific instance (ID) will fire trigger. | ||
**Labeled entities - will trigger only if trigger entity will be member of given [[Ylands Game logic - Entity label|'''label''']] | **Labeled entities - will trigger only if trigger entity will be member of given [[Ylands Game logic - Entity label|'''label''']]. | ||
**Player role - will react to players of specific [[Ylands Game logic - Player role|'''role''']] | **Player role - will react to players of specific [[Ylands Game logic - Player role|'''role''']]. | ||
===Perform=== | ===Perform=== | ||
*Governs if the trigger will react to incoming / exiting entity if there is already another entity in the zone. That entity must meet trigger rules (e.g if trigger is set to "ANY PLAYER" animals and other types will not block the trigger) | *Governs if the trigger will react to incoming / exiting entity if there is already another entity in the zone. That entity must meet trigger rules (e.g if trigger is set to "ANY PLAYER" animals and other types will not block the trigger). | ||
===Times triggered=== | ===Times triggered=== |
Revision as of 12:53, 4 January 2019
Description
Trigger which fires when a object enters or exits its bounding area.
Properties
Enabled
- Trigger will not fire if no enabled.
Zone shape
- Shape of the trigger zone - box or sphere.
Radius / Dimensions
- Size of the Trigger Zone boundaries.
Dynamic
- Allows to change Trigger Zone position / rotation / scale.
- Dynamic Trigger Zone reacts only to players (technical limitations).
Visible
- Makes the Trigger zone boundaries visible even when in game.
Color
- Color of Trigger zone boundaries (when visible).
Is triggered by
- Setup what kind of entity passing the area will fire the trigger.
- Any animal / item / player /projectile.
- Entity type - after picking an entity, any instance of this entity will fire trigger.
- Specific entity - after picking an entity, only this specific instance (ID) will fire trigger.
- Labeled entities - will trigger only if trigger entity will be member of given label.
- Player role - will react to players of specific role.
Perform
- Governs if the trigger will react to incoming / exiting entity if there is already another entity in the zone. That entity must meet trigger rules (e.g if trigger is set to "ANY PLAYER" animals and other types will not block the trigger).
Times triggered
- Number of times trigger can be fired, -1 sets to infinite. Entering and leaving trigger always removes one use (they do not count separately).
Trigger zone events
Related instructions