Components
ScriptableObjects
Plain C# Classes
EntityTrigger : ScriptableObject
What is an Entity Trigger?
A Entity Trigger is a Scriptable Object attached to an Entity Type. It allows Output Changes to be triggered when certain events occur and/or Input Conditions are met.
Entity Trigger Custom Inspector
Trigger Type |
There are currently 10 trigger options. No Entity Target ones: Main Loop, Update Loop, and Level Change. Level Change only supports Drives and Attributes. Has an Entity Target that must match: On Trigger Enter, On Trigger Exit, On Trigger Stay, On Collision Enter, On Collision Exit, On Collision Stay, and On Particle Collision. |
Cool Down | Seconds before this Entity Trigger can be triggered again. |
Level Type |
Which Level Type is this for? Only for Level Change Trigger Type. |
All ICs must pass for the Output Changes to run.
See Input Condition. |
|
Output Changes |
What changes occur when triggered and ICs pass?
See Output Change. |
For Target | Flips the Entity and the target Entity causing the target to run the ICs and OCs. Useful when an Entity is a World Object that impacts a target Agent since most ICs and OCs are designed for Agents to run them. |
Type Group, Type Category, or Entity Type: What type to use for matching on the Target Entity? | |
Match | Depends on the Target Match Type. This will be either a Type Group, a Type Category, or an Entity Type. |