Difference between revisions of "Game countdown timer"

From Obsidian Conflict Wiki
Jump to: navigation, search
Line 2: Line 2:
 
== Entity Description ==
 
== Entity Description ==
  
An entity that displays the time remaining until a map changes.
+
An entity that displays a timer at the top of the player's hud. It can be configured through inputs and can have repeated use over the course of a map.
  
 
== Keyvalues ==
 
== Keyvalues ==
Line 30: Line 30:
 
* '''FireUser1-4'''
 
* '''FireUser1-4'''
  
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.  
+
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
 +
 
 +
* '''StartTimer <float>'''
 +
 
 +
Starts the countdown. Requires an argument which is the number of seconds for the countdown.
 +
 
 +
* '''StopTimer'''
 +
 
 +
Stops the countdown permanently.
 +
 
 +
* '''PauseTimer'''
 +
 
 +
Stops the countdown temporarily.
 +
 
 +
* '''ResumeTimer'''
 +
 
 +
Resumes the countdown after '''Pause Timer''' is called.
 +
 
 +
* '''SetTimerLabel <string>'''
 +
 
 +
Sets a label for the timer that appears above the countdown.
  
 
==Outputs==
 
==Outputs==

Revision as of 09:16, 29 November 2008

Entity.png This Page contains informations about an Obsidian Conflict Entity, which means it is only availible for Obsidian Conflict or rather in that form it is explained.

Entity Description

An entity that displays a timer at the top of the player's hud. It can be configured through inputs and can have repeated use over the course of a map.

Keyvalues

  • targetname <target_source>

Defines the name that other entities refer to this entity by.

Inputs

  • Kill

Removes this entity from the world.

  • KillHierarchy

Removes this entity and all its children from the world.

  • AddOutput <string>

Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.

Format: <key> <value>

Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>

  • FireUser1-4

Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.

  • StartTimer <float>

Starts the countdown. Requires an argument which is the number of seconds for the countdown.

  • StopTimer

Stops the countdown permanently.

  • PauseTimer

Stops the countdown temporarily.

  • ResumeTimer

Resumes the countdown after Pause Timer is called.

  • SetTimerLabel <string>

Sets a label for the timer that appears above the countdown.

Outputs

  • OnUser1-4

Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.

!activator = activator