func_buyzone

From Source Entities
Jump to navigation Jump to search

Code classes:

Trigger.png

func_buyzone is a brush entity present in both Css.pngCsgo-small.pngCounter-Strike games. Players must be touching this volume to buy weapons and equipment.

Keyvalues[edit | edit source]

Team Number (TeamNum) <choices>
Which team the buyzone is for. Tip: In Css.png all-team buyzones can be made by simply making two entities.
  • -1: None
  • 0: All Teams (only available in Csgo-small.png)
  • 2: Terrorist
  • 3: Counter-Terrorist

Inputs[edit | edit source]

SetTeam <int>
Sets the buyzone's team. Note: In Css.png players with the buy menu open will not get closed out when it changes teams, but they still can't buy anything.
SetTeam_TerroristOnly  (only available in Csgo-small.png)
Set the buyzone's team to Ts.
SetTeam_CTOnly  (only available in Csgo-small.png)
Set the buyzone's team to CTs.
SetTeam_AllTeams  (only available in Csgo-small.png)
Set the buyzone's team to both.
SetTeam_None  (only available in Csgo-small.png)
Set the buyzone's team to neither (essentially disables the entity, aside from its base trigger functions).
SetEnabled  (only available in Csgo-small.png)
Does not exist in code.
SetDisabled  (only available in Csgo-small.png)
Does not exist in code.