Logic Component: Difference between revisions
Jump to navigation
Jump to search
m (→Example Usage) |
(Removed None option and Board Space option) |
||
Line 7: | Line 7: | ||
! Property !! Description | ! Property !! Description | ||
|- | |- | ||
|'''Event''' || The event | |'''Event''' || The event that triggers a list of Actions. | ||
|- | |- | ||
| style="padding-left: 2em;" | ''Start'' || Triggered at the start of a minigame, as the countdown begins. | | style="padding-left: 2em;" | ''Start'' || Triggered at the start of a minigame, as the countdown begins. | ||
Line 25: | Line 23: | ||
| style="padding-left: 2em;" | ''Timer'' || Triggered every x seconds. | | style="padding-left: 2em;" | ''Timer'' || Triggered every x seconds. | ||
|- | |- | ||
| style="padding-left: 4em;" | '''Interval | | style="padding-left: 4em;" | '''Interval''' || The number of seconds between the event firing. Use the Arrow beside the ''Interval'' value to set the mode. | ||
|- | |- | ||
| style="padding-left: | | style="padding-left: 6em;" | ''Constant'' || Actions are triggered repeatedly after a set number of seconds. | ||
|- | |- | ||
| style="padding-left: | | style="padding-left: 6em;" | ''Random Between Two Values'' || Actions are triggered repeatedly after a random amount of time. The minimum and maximum amount of time between each firing of the event can be set. | ||
|- | |- | ||
| '''Actions''' || The list of actions to run for the given Event. | | '''Actions''' || The list of actions to run for the given Event. | ||
Line 41: | Line 37: | ||
''Timer'' with a random ''Interval'' can be used to add random effects to make the minigame more exciting. Use the arrow beside the value to change between constant and random values. | ''Timer'' with a random ''Interval'' can be used to add random effects to make the minigame more exciting. Use the arrow beside the value to change between constant and random values. | ||
[[Category:Gameplay Components]] | [[Category:Gameplay Components]] | ||
[[Category:Components]] | [[Category:Components]] |
Revision as of 00:18, 16 December 2022
The logic component is a gameplay component that runs a series of actions for different events.
Component Settings
Property | Description |
---|---|
Event | The event that triggers a list of Actions. |
Start | Triggered at the start of a minigame, as the countdown begins. |
Enable | Triggered as soon as the minigame loads, while on the minigame load/intro screen. |
Update | Triggered every frame. Not consistent between players due to varying framerates. For consistent timed actions use the Timer event instead. |
Hit | Triggered when the object this component is attached to is hit by the player or weapons. |
Weapon Hit | Triggered when the object this component is attached to is hit by a weapon. |
Weapon Type | The type(s) of weapon hit that will cause the actions to be triggered. |
Timer | Triggered every x seconds. |
Interval | The number of seconds between the event firing. Use the Arrow beside the Interval value to set the mode. |
Constant | Actions are triggered repeatedly after a set number of seconds. |
Random Between Two Values | Actions are triggered repeatedly after a random amount of time. The minimum and maximum amount of time between each firing of the event can be set. |
Actions | The list of actions to run for the given Event. |
Example Usage
Start can be useful to make something happen when the minigame begins.
Timer with a random Interval can be used to add random effects to make the minigame more exciting. Use the arrow beside the value to change between constant and random values.