User Tools

Site Tools


4rpl:commands:getobjcolor

This is an old revision of the document!


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.1611516696.txt.gz · Last modified: 2025/02/14 14:56 (external edit)