SetColor (script event)

From modwiki

Jump to: navigation, search

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Sets the RGB color of this entity (shader parms Parm0, Parm1, Parm2).

Usage

void setColor( float red, float green, float blue )

Parameters

  • [red] -The red value to assign to this entity.
  • [green] - The green value to assign to this entity.
  • [blue] - The blue value to assign to this entity.

Examples

 
$my_entity.setColor(0.1, 0.8, 0.6);

Notes

This script event does not return any values.


Personal tools
Main
id Tech 5