berry7009 Posted February 11, 2013 Share Posted February 11, 2013 (edited) function SkyGradient(SkyGradient) setSkyGradientsetSkyGradient( 200, 0, 100, 150, 0, 70 ) end addCommandHandler("sky",SkyGradient) what's wrong !? its so simple ! i get that error: attempt to call global setSkygradientsetSkyGradient' also how to change water color ? can you make me an example please for both Sky and water and if you can make one sky with RGB ? UPDATE : i fixed the setSky function Skycolor(setSkyGradient) setSkyGradient( 200, 0, 100, 150, 0, 70 ) end addCommandHandler("sky", Skycolor) now i get another error: attempt to call setskygradient Edited February 11, 2013 by Guest Link to comment
Castillo Posted February 11, 2013 Share Posted February 11, 2013 You put the function name twice. Link to comment
HunT Posted February 11, 2013 Share Posted February 11, 2013 setSkyGradientsetSkyGradient???? Maybe setSkyGradient Link to comment
berry7009 Posted February 11, 2013 Author Share Posted February 11, 2013 i am new to this so more explanation please if you can add examples it will be nice Link to comment
DNL291 Posted February 11, 2013 Share Posted February 11, 2013 The function name is setSkyGradient. function SkyGradient() setSkyGradient( 200, 0, 100, 150, 0, 70 ) end addCommandHandler("sky",SkyGradient) Link to comment
berry7009 Posted February 11, 2013 Author Share Posted February 11, 2013 so put nothing between ()? also one for water please Link to comment
DNL291 Posted February 11, 2013 Share Posted February 11, 2013 If you mean change the water color, use setWaterColor. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now