Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

CS2D Command hudtxtalphafade

Categories

Parameters

  • player (1-32): id of a player (or 0 for all)
  • id (0-49): 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).

Lua Hook Lua Hooks

Lua Command Lua Commands