Change farmer clothes color by lua

Your forum for all discussions around Modding.
User avatar
yumi
Posts: 243
Joined: Sun Jun 19, 2016 5:48 pm
Contact:

Change farmer clothes color by lua

Post by yumi »

Hello,

I'm trying to specify farmer/worker clothes color instead of using either the one defined in parameters or random color for workers.
Is there a lua call that I could use to do so ?
For worker I'm able to overwrite playerColorIndex in some cases, but I would need something else for specific scenario.
I'm trying to use
setShaderParameter(farmer.playerMesh, "colorScale", 1, 0, 0, 0, false)
but it does not work.
Am I on the right way ?
Thanks
moreRealistic fan !
FS19 "mr" on Old Farm Coutryside and Champs de France.
Give a try to ContractorMod!
Contractor Mod Beta version for FS22
All released mods source code is on Github
User avatar
yumi
Posts: 243
Joined: Sun Jun 19, 2016 5:48 pm
Contact:

Re: Change farmer clothes color by lua

Post by yumi »

moreRealistic fan !
FS19 "mr" on Old Farm Coutryside and Champs de France.
Give a try to ContractorMod!
Contractor Mod Beta version for FS22
All released mods source code is on Github
Post Reply