Page 1 of 1

Torch holder extinguishing

Posted: Tue Jan 17, 2017 4:30 am
by Gradunk
I'm trying to create a mine that yells at you to get out and puts out all the torches and stuff, but ive been absent from modding for quite some time. i've forgotten most of how lua works. but i cant seem to find a way to either extinguish torches on their holders or remove them completely.
any help? thanks

Re: Torch holder extinguishing

Posted: Tue Jan 17, 2017 8:50 am
by zimberzimber
You can "extinguish" them by turning off the light, sound, and particle components on the torch holder object.
Through script it would be torch_holder_id.light:disable() replace light with sound and then light for other components.

Re: Torch holder extinguishing

Posted: Wed Jan 18, 2017 5:03 am
by Gradunk
thank you.