game_money
Jump to navigation
Jump to search
game_money
is a point entity available in Counter-Strike: Global Offensive.
Entity description
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
ortarget
).
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 (Money) <integer>
- Amount of money to add or deduct.
- Award Text (AwardText) <string>
- The text that will print in the chat next to the award amount. Will look like this: '+/-1000: <Award Text>'
Inputs
game_money:
- SetMoneyAmount <integer >
- Set the money value that will be awarded.
- AddTeamMoneyTerrorist
- Award money to Terrorists.
- AddTeamMoneyCT
- Award money to Counter-Terrorists.
- AddMoneyPlayer
- Add money directly to the player activating this entity. (Doesn't print in chat)
- SpendMoneyFromPlayer <integer >
- 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)