SetColor (script event)

From modwiki

Jump to: navigation, search

Description

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

Usage

In your script type...

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