Jump to content

I fixed interior lanterns turning on upon reentry


phasic
  • Version: PC/MAC/Linux Pending

Lights will not obey their machine.ison state when run through the interiorspawner component upon transitions into interiors. Adding           

if v.Light and v.components.machine and not v.components.machine.ison then
      v.Light:Enable(false)
end

To around line 1262 to scripts/components/interiorspawn.lua seems to resolve the problem for not only lanterns but all lights that can be toggled, e.g. tarlamp.


Steps to Reproduce
Drop lantern inside an interior. Exit and re-enter interior. See that the light is on around the lantern but the lantern is not on. Paste in the above code into the specified file and attempt to reproduce again.



User Feedback


Cheers, thanks for the code snippet. While I will probably fix it in a slightly different way, it's definitely something that needs to be addressed.

  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...