Page 1 of 1

Allow vehicle colour with vehicle.color

Posted: Fri Dec 16, 2016 10:23 am
by Earendel
I would like to be able to set the color on a vehicle (car), so with "vehicle" as a LuaEntity: vehicle.color = {r=255, g=0, b=0, a=1}
I would like this color to persist until something else changes it, such as a player entering or leaving a vehicle.
If a player is in a vehicle and the color is changed it should override the currently displayed color.

Re: Allow vehicle colour with vehicle.color

Posted: Fri Dec 16, 2016 3:15 pm
by Rseding91
Vehicles don't have a color property that they save which means there's no property to modify through the API. They simply render with the color of the current player in them.

Re: Allow vehicle colour with vehicle.color

Posted: Fri Dec 16, 2016 7:13 pm
by Earendel
Ok, in that case are there any entity types that have more than 16 possible directions, are not locked to rails, and do support the color property?