Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
hudtxtalphafadeCategories
Parameters
- player (1-32): id of a player (or 0 for all)
- id (0-199): internal text id
- duration (ms): alpha fade/transition effect in milliseconds
- alpha (0.0-1.0): new alpha value
Info
Lets a HUD text (specified with id) change its alpha value. The transition will be smooth and will take the given time (duration).
You can let this effect be visible for all players (player=0) or to a certain player only (player=id of this player).
alpha must be a value between 0.0 (invisible) and 1.0 (fully opaque).
Lua Hooks
Lua Commands
Categories
Parameters
- player (1-32): id of a player (or 0 for all)
- id (0-199): internal text id
- duration (ms): alpha fade/transition effect in milliseconds
- alpha (0.0-1.0): new alpha value
Info
Lets a HUD text (specified with id) change its alpha value. The transition will be smooth and will take the given time (duration).
You can let this effect be visible for all players (player=0) or to a certain player only (player=id of this player).
alpha must be a value between 0.0 (invisible) and 1.0 (fully opaque).
You can let this effect be visible for all players (player=0) or to a certain player only (player=id of this player).
alpha must be a value between 0.0 (invisible) and 1.0 (fully opaque).