How to attach a lighting source to something?

Post » Mon Jun 18, 2012 10:40 pm

I have a sword in my dungeon that I want to light up the room, but when picked up to get rid of the light. Can this be done, if so how?
User avatar
Alister Scott
 
Posts: 3441
Joined: Sun Jul 29, 2007 2:56 am

Post » Tue Jun 19, 2012 2:23 am

Pretty simple.

Place a light above your sword or wherever you find it looks best.

You'll need a script that has a property referencing the light. Then, in some code that will happen once the player has taken the sword, use the property you set up and call Deactivate() on it, which should turn it off.
User avatar
saxon
 
Posts: 3376
Joined: Wed Sep 19, 2007 2:45 am


Return to V - Skyrim