game_text

From Valve Developer Community
Revision as of 17:07, 23 February 2019 by Darnias (talk | contribs) (Created page with "{{csgo point | game_text}} An entity that can add or deduct money from players or teams. == Keyvalues == {{KV Targetname}} {{ScrollBox|title=game_money|}} {{KV|Amount of mon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

game_text is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

An entity that can add or deduct money from players or teams.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

game_money:
Amount of money to add ([todo internal name (i)]) <integer>
Amount of money to add or deduct.
Note.pngNote:Do not add + or - , to add or deduct money use inputs.
Award Text ([todo internal name (i)]) <string>
The text that will print in the chat next to the award amount. Will look like this: '+/-1000: <Award Text>'

Inputs

Base:
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
game_money:
SetMoneyAmount
Set the money value that will be awarded. (without awarding it)
AddTeamMoneyTerrorist
Add money to players on team TERRORIST.
AddTeamMoneyCT
Add money to players on team COUNTER TERRORIST.
AddMoneyPlayer
Add money directly to the player activating this entity. (doesn't print in chat)
SpendMoneyFromPlayer
If the player has [money amount] or more, take [money amount] away.

Outputs

game_money:
OnMoneySpent
Fires when input SpendMoneyFromPlayer succeeded.
OnMoneySpentFail
Fires when input SpendMoneyFromPlayer failed. (Player didn't have enough money)