~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetObjColor|Get]] * [[4rpl:commands:SetObjColor|Set]] ====== 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) <=[[4rpl:start| Index]]