Counter Object

From Runic Games Wiki
Jump to: navigation, search

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
bool
If False the Counter value will not be sent to other multiplayer clients who load in to the level.
PROPERTIES
ENABLED
bool
Sets the Counter enabled or disabled.
EQUALS VALUE
int
When the internal counter adds or subtracts an event will be broadcasted when it reaches this value.
STARTING VALUE
int
The starting value of the Counter.
LOGIC
string
This is the action that will occur when the Counter reaches the set "Equals Value".
  • Activate
    Fires the "Activate" Output event.
  • Activate and Reset
    Fires the "Activate" Output event.
    Fires the "Reset" Input event.
  • Activate on Each Add
    Fires the "Activate" Output event on every "Add" Input event.
  • Activate on Each Add and Reset
    Fires the "Activate" Output event on every "Add" Input event.
    Fires the "Reset" Input event.
  • Activate on Each Subtract
    Fires the "Activate" Output event on every "Subtract" Input event.
  • Activate on Each Subtract and Reset
    Fires the "Activate" Output event on every "Subtract" Input event.
    Fires the "Reset" Input event.
  • Activate Only Once
    Fires the "Activate" Output event only once.

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.
Personal tools
Namespaces

Variants
Actions
Navigation
Runic Sites
Toolbox