So I'm making this kid a npc spawning script and he wants the sky to change to red with some fog and I'm not exactly sure how to change the sky/add fog so I thought doing something like this would accomplish it. My question is, how can I set the properties of the edit_sky through lua?
[CODE]function SpookySkybox()
local skychanger = ents.Create("edit_sky") -- Set Colored Sky
skychanger:SetPos(Vector(-1261,-2576,30))
skychanger:Spawn()
skychanger:SetVar( "TopColor", ) -- Would I use something like this?
end[/CODE]
You haven't bothered to do your own research at all, have you?
[url]https://github.com/Facepunch/garrysmod[/url] Go dig around for two minutes or so. The answer already lies within the snippet you provided.
Sorry, I'm very new in Lua (started one week ago). Can you explain how to do this thing? (Sorry for my bad english, I'm spanish)
About searching on GitHub
You're meant to find this: Search · · GitHub
Sorry, you need to Log In to post a reply to this thread.