This article's documentation is for the "GoldSrc" engine. Click here for more information.

Game score (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(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...")
 
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
Line 1: Line 1:
{{This is a|name=game_score|e0|engine=1}} This entity gives or takes points from a player or their team.
{{this is a|point entity|name=game_score|engine=GoldSrc}} This entity gives or takes points from a player or their team.


==Key Values==
==Key Values==

Latest revision as of 21:09, 17 May 2024

game_score is a point entity available in all GoldSrc GoldSrc games. 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.