so in my script i have the following:
user setClientDvar("r_lightTweakSunColor", 0, 1, 1, 1);
(this is in RGBA format)
for some reason, only the first number parameter is used and the others are set to 0/ignored... so this would be 0 0 0 0.
user setClientDvar("r_lightTweakSunColor", 1, 1, 0, 1);
this would be 1 0 0 0
someone help, i cant figure out how to access the other parameters :s
script-dvar issue
Moderator: Core Staff
Re: script-dvar issue
Firstly, setClientDvar() is to be used with exactly two arguments.
Secondly, any dvar is a string-type object.
So, you should go with user setClientDvar("r_lightTweakSunColor", "0 1 1 1");
Secondly, any dvar is a string-type object.
So, you should go with user setClientDvar("r_lightTweakSunColor", "0 1 1 1");
Re: script-dvar issue
thanks alot!
Who is online
Users browsing this forum: No registered users and 31 guests