Commands/Lua

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: image (18)

Lua Command tween_alpha

Categories

Parameters

  • id
  • time
  • alpha

Info

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)