Counter Object
From Runic Games Wiki
Contents |
Counter
Description
This Level Object will fire off an "Activated" Output event when the value in the Counter reaches the set "Equals Value" value. The Counter starts at the value specified in "Starting Value" property and is modified by "Add", "Subtract", and "Reset" Input events.
Location
Right-click on an empty space in the Layout Scene Manager and choose Logic > Counter from the list.
Properties
Name | Type | Description | Read Only |
---|---|---|---|
NETWORK | |||
SENDS | |
If False the Counter value will not be sent to other multiplayer clients who load in to the level. | |
PROPERTIES | |||
ENABLED | |
Sets the Counter enabled or disabled. | |
EQUALS VALUE | |
When the internal counter adds or subtracts an event will be broadcasted when it reaches this value. | |
STARTING VALUE | |
The starting value of the Counter. | |
LOGIC | |
This is the action that will occur when the Counter reaches the set "Equals Value".
|
|
Input Events
- Add
- Increment the count by 1.
- Subtract
- Decrement the count by 1.
- Enable
- Enable the Counter. The Counter will accept "Add" and "Subtract" Input events.
- Disable
- Disable the Counter. The Counter will not accept "Add" or "Subtract" Input events.
- Reset
- Reset the count back to the "Starting Value" set on the Counter object.
- This will also set the Counter to be Enabled.
- Broadcast
- Broadcast the current count and Enabled state.
Output Events
- Enabled
- This event will fire when the Counter receives an "Enable" Input event.
- Disabled
- This event will fire when the Counter receives a "Disable" Input event.
- Reset
- This event will fire when the Counter receives a "Reset" Input event.
- Activated
- This event will fire when the count reaches the set "Equals Value" value.