Manipulate torch via script

Post » Tue Jun 19, 2012 9:11 am

Hi!

Is there a way to lit or extinguish a torch via a script? I can't find anything!
User avatar
Jon O
 
Posts: 3270
Joined: Wed Nov 28, 2007 9:48 pm

Post » Tue Jun 19, 2012 8:01 am

You can use EquipItem() and UnequipItem() on torches, edit: if you're talking about torches an actor is holding--or see below for torches on the wall.
User avatar
Angela Woods
 
Posts: 3336
Joined: Fri Feb 09, 2007 2:15 pm

Post » Tue Jun 19, 2012 2:32 pm

As world objects, "lit torches" and "extinguished torches" aren't really variations of one another - they're different objects. To swap from one to another, you'd need to http://www.creationkit.com/Disable_-_ObjectReference one and http://www.creationkit.com/Enable_-_ObjectReference the other.

Cipscis
User avatar
Lucy
 
Posts: 3362
Joined: Sun Sep 10, 2006 4:55 am

Post » Tue Jun 19, 2012 12:42 am

Well it appears both are Torch01 and you can check 'Off by default' in the base object properties though I don't find it in the reference properties...so I don't really know how to use the enable/disable method.

I read elsewhere some object have multiple textures, is it not the case here? If so, how can I switch between these textures?
User avatar
Fam Mughal
 
Posts: 3468
Joined: Sat May 26, 2007 3:18 am


Return to V - Skyrim