Torch holder extinguishing

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Gradunk
Posts: 54
Joined: Tue Oct 22, 2013 2:26 am
Location: Calgary, Canada

Torch holder extinguishing

Post 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
I smell you, i do! You GRADUNK! No be hiding on TORGAL!
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Torch holder extinguishing

Post 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.
My asset pack [v1.10]
Features a bit of everything! :D
Gradunk
Posts: 54
Joined: Tue Oct 22, 2013 2:26 am
Location: Calgary, Canada

Re: Torch holder extinguishing

Post by Gradunk »

thank you.
I smell you, i do! You GRADUNK! No be hiding on TORGAL!
Post Reply