User Tools

Site Tools


4rpl:commands:setobjcolor

Index

SetObjColor

SetObjColor(<-Unit “ObjName” <-colorVector)

Description

Sets the RGB color unit's object from the specified color vector. Objects are the sub-parts that make up a unit. The first three values of the vector, red/green/blue, are passed in. Each is a floating point number where 1 is full brightness and 0 is minimal brightness. Note, use “” (empty string) to indicate the root level object.

Examples

V3(1 0.5 0.2) ->color
SetObjColor(self "Arm" <-color)

Index

4rpl/commands/setobjcolor.txt · Last modified: 2021/01/24 14:31 by Sanian