How to make fog?

How can you make fog with LUA?

I’m guessing you would use an lua effect, but never really used one before. Try searching how to create an effect or learn from sombody elses code.

I think spacebuild 2 has a fog effect


and how can you make text show up above SNPC’s heads when you look at them?