Jump to content

setSkyGradient


Pinda

Recommended Posts

red,green,blue,alpha=255,56,192,192
topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue=255,56,192,255,56,192
addEventHandler("onClientResourceStart",getResourceRootElement(),function()
setWaterColor(red,green,blue,alpha)
setSkyGradient(topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue)

what i did wrong ?

Link to comment

your function has no "end" and addEventHandler misses a ")". the rest seems fine

red,green,blue,alpha=255,56,192,192
topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue=255,56,192,255,56,192
addEventHandler("onClientResourceStart",getResourceRootElement(),function()
setWaterColor(red,green,blue,alpha)
setSkyGradient(topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue)
end -- this is the end of the function you start 3 lines above
) -- this is the ")" of addEventHandler 4 lines above

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...