Page 1 of 1
Creating darkness in a certain section?
Posted: Mon Sep 27, 2021 1:11 am
by LunarCatUSA
Say I wanted to make an entire section pitch black. How would I got about this in terms of LunaLua code? I know it’s something among the the lines of sectiondarkness or some function like that. I’d appreciate any help.
Re: Creating darkness in a certain section?
Posted: Mon Sep 27, 2021 6:49 am
by Hoeloe
That doesn't need any Lua code at all. You can just enable it in the section settings.
Re: Creating darkness in a certain section?
Posted: Mon Sep 27, 2021 5:42 pm
by LunarCatUSA
I mean at like a certain point. Like make it go out during an event? Let’s say I want the screen lit up one second, then dark the next.
Re: Creating darkness in a certain section?
Posted: Tue Sep 28, 2021 8:03 am
by deice
you can use the automatically loaded darkness.lua library as explained
here. there's also a
video tutorial by enjl
Re: Creating darkness in a certain section?
Posted: Tue Sep 28, 2021 10:02 am
by Hoeloe
You don't need to do either of those. It's a lot simpler. You can just do Section(0).darkness.enabled = false.
Re: Creating darkness in a certain section?
Posted: Wed Sep 29, 2021 1:15 am
by LunarCatUSA
Alright, thanks.