Replacing an NPC

Post » Mon Feb 14, 2011 9:22 am

Several questions this time.

First of all, does GetAngle Z work on dead NPCs, and if so, how?

Does IsFacingUp work on dead NPCs?

How do you use a script to force an actor or creature to lie on their back, even for only a second, as if knocked down, and stay that way as MoveTo is used on them? Basically, I want to teleport a creature to a location and have it appear lying down, then get up. I would assume I would have to force it to play an animation, but I do not know which one or how to trigger it.
User avatar
CxvIII
 
Posts: 3329
Joined: Wed Sep 06, 2006 10:35 pm

Post » Mon Feb 14, 2011 3:03 pm

... I would have to force it to play an animation, but I do not know which one or how to trigger it.

This is probably the show-stopper. I don't think creatures have any animations for getting up. Basically if they're knocked, down, they're dead, so they don't need one.

Creating a new animation is not an easy task.
User avatar
Marcin Tomkow
 
Posts: 3399
Joined: Sun Aug 05, 2007 12:31 pm

Post » Mon Feb 14, 2011 8:58 am

Just thought of something. I'm pretty sure I could kill the creature with a script then move it while dead and use ressurect 1 on it so it gets up. I've done it with zombies and skeletons, so it should work, but I do not know how accurately I could mimic the dead NPC's position. Aside from that, do you know the answers to anything else I asked?
User avatar
Tina Tupou
 
Posts: 3487
Joined: Fri Mar 09, 2007 4:37 pm

Post » Mon Feb 14, 2011 9:10 am

Why don't you make some test scripts to find out your other questions. You could try making a dead NPC and make a script so that if he 'IsFacingUp' a message box will appear.
User avatar
Robyn Lena
 
Posts: 3338
Joined: Mon Jan 01, 2007 6:17 am

Post » Tue Feb 15, 2011 1:39 am

I don't know if this will help you or not, but Supreme Magicka has an effect where you can knock NPC's and creatures down and they get back up again (and attack you ;)) It's really funny with skeletons because when you hit them hard enough with a fire spell, they fall down in pieces and you actually get the animation of them reassembling themselves and getting up. I usually hit them with another fire spell at this point so they don't get back up again... Anyway, maybe if you have a look at SM, it might give you some ideas. Now when they've been knocked down, there's no guarantee on how they will be arranged...
User avatar
Claire
 
Posts: 3329
Joined: Tue Oct 24, 2006 4:01 pm

Post » Mon Feb 14, 2011 9:54 am

I don't actually need them to be arranged perfectly, if I can get a large cloud of smoke or purple flash or something to cover the transition. Currently I'm using the soul trap shader, but if you know anything that would work better, please tell me. It might look good if I make an x marker move to the body and hit it with an AoE purple script effect with no script as it is replaced by the creature. I'll test that, but something like a shader but bigger would be preferable.
User avatar
BrEezy Baby
 
Posts: 3478
Joined: Sun Mar 11, 2007 4:22 am


Return to IV - Oblivion