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
-
- CJ Worshipper
- Posts: 414
- Joined: July 22nd, 2009, 3:02 am
- Location: Russia, Vladivostok
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");
-
- CJ Fan
- Posts: 114
- Joined: November 27th, 2012, 10:49 pm
Re: script-dvar issue
thanks alot! 
