game_score

From Valve Developer Community
Revision as of 08:47, 13 February 2024 by N0one (talk | contribs) (Created page with "{{This is a|name=game_score|e0|engine=1}} This entity gives or takes points from a player or their team. ==Key Values== {{Hl1_kv_targetname}} {{hl1 kv master}} {{KV|Points to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

game_score is an e0 available in all Template:1 games.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This entity gives or takes points from a player or their team.

Key Values

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Master (master) <targetname>
Name of a master entity. If the master hasn't been activated, this entity will not activate.
Points to add (+/-) (points) <integer>
Sets the number of points to be given or taken.

Flags

Allow Negative : [1]
If enabled, the game_score is able to make scores negative.
Team Points : [2]
If enabled, the entity will affect the activating player's whole team.