antstubell Posted June 18, 2021 Share Posted June 18, 2021 I made a lantern that effectively is a torch so I'll refer to my lantern as a torch because the idea is the same.The sconce is 'loaded' has a torch already in it. It is enabled/disabled by a xmarker. When my scene begins this sconce, along with other items has to 'go away' be disabled. The sconce itself does disable but the torch remains floating there. If player has taken the torch from the sconce all is good.How can I disable the torch that is in the sconce?Thanks for the help. Link to comment Share on other sites More sharing options...
anjenthedog Posted June 19, 2021 Share Posted June 19, 2021 "physically" remove it? there are a few sconces here and there around Skyim that have built in on/off switches. The torch doesn't disappear when using the switch, it simply "goes out" or lights. So unless one removes the torch from the sconce, it remains visible, just unlighted (when "switched" off). Link to comment Share on other sites More sharing options...
IsharaMeradin Posted June 19, 2021 Share Posted June 19, 2021 Check to see if you have a separate object reference ID for the torch / light within the sconce. If you do, try disabling that. If not, I have no idea. Link to comment Share on other sites More sharing options...
antstubell Posted June 19, 2021 Author Share Posted June 19, 2021 "physically" remove it? there are a few sconces here and there around Skyim that have built in on/off switches. The torch doesn't disappear when using the switch, it simply "goes out" or lights. So unless one removes the torch from the sconce, it remains visible, just unlighted (when "switched" off).What? Link to comment Share on other sites More sharing options...
anjenthedog Posted June 19, 2021 Share Posted June 19, 2021 you said that your code successfully turns off and on the light, but doesn't "physically" remove the torch when off, right? if you want the torch removed, you need to code it to also remove the torch mesh/texture. idk, maybe I don't understand what you're trying to do. if so, just ignore my comment and sorry for the miscommunication. Link to comment Share on other sites More sharing options...
antstubell Posted June 20, 2021 Author Share Posted June 20, 2021 I made a video showing what I mean.The lantern acts the same as a torch. At the beginning you can see the few objects inside the ship cabin. When the ship begins to tilt these objects are disabled including the sconce but as you see at the end the lantern that was in the sconce is still there. I can't click on it in CK because it isn't shown. The default sconce script which is what it uses requires a property to be filled that says 'put a torch in the sconce'. When the game loads the torch appears.Torch.mp4 - OneDrive (live.com) Link to comment Share on other sites More sharing options...
IsharaMeradin Posted June 20, 2021 Share Posted June 20, 2021 To save the trouble of trying to guess which stock script is on the sconce, can you give us the name? There might be something there we can use to "grab" the "torch" in order to disable / remove it. Link to comment Share on other sites More sharing options...
antstubell Posted June 21, 2021 Author Share Posted June 21, 2021 (edited) Scriptname RemovableTorchSconce01SCRIPT extends ObjectReference Hidden Properties properties.jpg - OneDrive (live.com) Edited June 21, 2021 by antstubell Link to comment Share on other sites More sharing options...
IsharaMeradin Posted June 21, 2021 Share Posted June 21, 2021 On the script there is the hidden property called PlacedTorch. Reference the instance of this script on the sconce you are disabling and get the PlacedTorch property and disable that. Link to comment Share on other sites More sharing options...
antstubell Posted June 23, 2021 Author Share Posted June 23, 2021 Sounds great... how would I do that? Link to comment Share on other sites More sharing options...
Recommended Posts