Aller au contenu

Photo

The sitting dead?


  • Veuillez vous connecter pour répondre
9 réponses à ce sujet

#1
olivier leroux

olivier leroux
  • Members
  • 590 messages
I know how to spawn in a corpse and I know how to make an NPC sit but can I spawn in a dead creature and make it sit, or make an NPC sit and kill it in a way that it remains sitting?

Thanks!

#2
Fester Pot

Fester Pot
  • Members
  • 1 394 messages
Hmm...

I don't think you can because when a creature dies, it plays the ANIMATION_LOOPING_DEAD_BACK.

You could attempt to have an NPC sit in a chair, follow it by assigning enough damage to kill it and see what happens. My guess is the NPC will lay on the ground or vanish, depending on the settings - keep the NPC around or not after death.

FP!

Modifié par Fester Pot, 19 novembre 2010 - 03:21 .


#3
AngelRogue

AngelRogue
  • Members
  • 20 messages
What if he was to go into the ondeath script and remove that animation?

#4
Mudeye

Mudeye
  • Members
  • 126 messages
There are several dead npc placeables. If that would work.

#5
Avonos the Rogue

Avonos the Rogue
  • Members
  • 39 messages
I've never even considered applying animations to a corpse. Some funny things could be done if this is so. Sadly I have no clue as to if this is possible, but I'm interested in the answer.

#6
CalSailX

CalSailX
  • Members
  • 56 messages
If it is a parts based npc, I think you'll have to have it use a new phenotype where the animation ANIMATION_LOOPING_DEAD_BACK, while still accessed as such would be replaced by a dupe of the sitting animation. If it wasn't a parts based critter you could add a animation to it that would override the ANIMATION_LOOPING_DEAD_BACK in it's supermodel.



If there is a way to doing what you want with just scripting I'd love to see it, but I'm pretty sure the death animation to use is hardcoded into the engine.


#7
TSMDude

TSMDude
  • Members
  • 865 messages
Destroy the corpse and use one of the semi sitting up dead npc placeables? Think there is ones for monsters as well as normal ones....

#8
olivier leroux

olivier leroux
  • Members
  • 590 messages
Too bad. I'm trying to build a mod without using haks or CEP so using sitting up dead npcs or creating new phenotypes (if I was able to do this) is out of the question. Anyway, thanks to everyone who tried to come up with a solution for my problem. :)

#9
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
All i can think of is haven them turned into stone ....statues scripts.

#10
ffbj

ffbj
  • Members
  • 593 messages
I have had it happen where an npc who has a normal script that causes them to sit will sometimes end up being dead sitting on a bench. So it is not impossible to do. The only thing I can figure is that somehow their normal script had a hold-over animation which was still in effect before they were killed and continued to play that animation. Mostly for me it was just an annoyance, as they would just set there, or sometimes stand over a bench but be dead.  Well this is the script that is the likely culprit, but it is set up to have guys sitdown when it's raining.  Of course it not a reliable way to do what you are asking, just pointing out that it can happen.
 

void main()
{
    object oSpawn = OBJECT_SELF;
    object oArea = GetArea(oSpawn);
    object oBase = GetNearestObjectByTag ("GuardBench");
    effect eRegenerate = EffectRegenerate(2, 6.0);
    location lWP = GetLocation(oBase);
     if (GetIsNight() || (GetWeather(oArea) == WEATHER_RAIN))
     {
    DelayCommand (1.0, ActionForceMoveToLocation(lWP,TRUE));
    DelayCommand (10.0, ActionSit(oBase));
    DelayCommand (12.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eRegenerate, oSpawn, 30.0));
    }
}

Modifié par ffbj, 20 novembre 2010 - 05:02 .