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