Get vehicle color.

Author Topic: Get vehicle color.  (Read 740 times)

I need to get the current color of the vehicle or the spawnbrick and apply it in a datablock.

How can this be done?

Should be:
%vehicle.brick.getColorID()

Correct me if I'm wrong, can't check atm.

Im trying to get the RGBA value of the paint thats been applied to the vehicle.

Was it RGBA what colorsets use?
Anyways, what i mean is the same values that the colorsets use with the 4 variables for colors and transperency.

Yeah it's .spawnBrick.getColorID()

Im trying to get the RGBA value of the paint thats been applied to the vehicle.

Was it RGBA what colorsets use?
Anyways, what i mean is the same values that the colorsets use with the 4 variables for colors and transperency.

getColorIDTable(%vehicle.spawnBrick.getColorID())

If you need to convert that to 0-255 form instead of 0.0-1.0 you can wrap it in getColorI.

(damnit, why is Evar's laptop signed into Evar's account on BLF :p)