Giving a static prob health

Post » Thu Jun 21, 2012 2:34 am

Hmm, is it possible to convert a static Object like a door to an object with life so you can smash it?
User avatar
Cameron Wood
 
Posts: 3384
Joined: Wed Oct 31, 2007 3:01 pm

Post » Thu Jun 21, 2012 4:06 am

Search here: http://www.creationkit.com/ObjectReference_Script for damageobject, getcurrentdestructionstate, ondestructionstatechanged and cleardestruction. You can find an example of it's use in Mineorescript.
User avatar
daniel royle
 
Posts: 3439
Joined: Thu May 17, 2007 8:44 am

Post » Thu Jun 21, 2012 12:20 pm

Thanks for your answer.
Does that type of damage advance your skills though?
I am looking for a method so the player can damage the object like he would damage a mob :).
User avatar
Amy Gibson
 
Posts: 3540
Joined: Wed Oct 04, 2006 2:11 pm

Post » Wed Jun 20, 2012 11:06 pm

Not by default. You would need to add that part yourself. Indeed, you can't aply it directly, you would need to use a method for detecting the hit first, like the onhit event (which needs to be handled with care as continuous damage spells launch a lot of events very fast, a state change is needed to avoid the event processing more hits for a brief while afte each time it runs).
User avatar
stevie critchley
 
Posts: 3404
Joined: Sat Oct 28, 2006 4:36 pm


Return to V - Skyrim