User Tools

Site Tools


4rpl:commands:getobjcolor

Index

GetObjColor

GetObjColor(<-Unit “ObjName”) ->color

Description

Returns the RGB color values of a unit's object as a vector. Objects are the sub-parts that make up a unit. Each value, r,g,b, 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

GetObjColor(self "Arm") ->color
PrintAllSp(<-color.r <-color.g <-color.b)

Index

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