Turn on a "torch" via script

Post » Tue Jan 15, 2013 8:23 am

I have a new light that functionally works exactly like torch01. So as of now when placed it is lit, and when picked-up and equipped it is lit, but when dropped, it becomes unlit. I want to make sure it's lit after dropping it, but I can't see any functions like "turn on" or "go to on state," or something to that effect. Any ideas? Right now I can detect when it's dropped via this script:

Spoiler
Scriptname BW117IslandWelkyndStoneScript extends ObjectReferenceEvent OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)	if akOldContainer && !akNewContainer			Debug.messagebox("We have been dropped!")	  elseif akNewContainer && !akOldContainer			Debug.messagebox("We have been picked up!")	 else			Debug.messagebox("We have switched containers!")	 endIfendEvent
User avatar
Kaley X
 
Posts: 3372
Joined: Wed Jul 05, 2006 5:46 pm

Return to V - Skyrim