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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Command Lua Commands

Category: all (86)

Lua Command tween_alpha



  • id
  • time
  • alpha


Creates an alpha fade tween which changes the transparency of an image (with the specified ID). The image will have the given alpha transparency value after the given time!

Note: Alpha ranges from 0.0 (totally invisible) to 1.0 (completely opaque)

Note: Time in ms (milliseconds, 1000 ms = 1 sec)