Community Forum

Change farmer clothes color by lua

Forum Overview >> Scripting

CategoryScripting
Created01.02.2018 14:32


Mass Yas (massyas) 01.02.2018 14:32
Hello,

I'm trying to specifiy 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

Justin Lingle (Unknown) 01.02.2018 14:52
how i mod form this website? im trying to do some of my own mods.


Note: Log in to post. Create a new account here.