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

Lua Command tween_color

Categories

Parameters

  • id
  • time
  • r
  • g
  • b

Info

Creates a color fade tween which changes the color of an image (with the specified ID). The image will have the given color after the given time (use a colorpicker to get the values)!

Note: r, g and b (red, green and blue) range from 0 (dark) to 255 (bright)

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