Jump to content

Pushing dead actors?


NanakoMagojiro

Recommended Posts

Hi everyone. I'm having fun playing with melee weapons that launch enemies. I'm using the script from unrelenting force (voicepusheffectscript)

 

it can simply be placed onto a melee weapon, set the pushforce and it works, as is. Very fun ^_^

 

However there's one problem. The script only actually launches an actor IF they survive the hit. If the weapon blow kills them, they don't go flying, and instead do a generic death animation and fall over where they stand. This is annoying.

 

I'm wondering if anyone could provide some advice on modifying the script to fix this. It presently reads as follows:

 

 

Scriptname VoicePushEffectScript extends ActiveMagicEffect  

Event OnEffectStart(actor Target, actor Caster)
Caster.PushActorAway(Target, PushForce)
EndEvent

int Property PushForce  Auto  

 

As far as i can see the problem here is that the target seems to only be an actor. I'm guessing that when an actor dies and becomes a ragdoll, they're no longer considered an actor, and maybe can't be pushed by this.

 

How could it be remedied though?

Link to comment
Share on other sites

looking for advice from ny knowledgeable scripters ^^

 

i've noticed that all of the other effects still happen when i hit a dead actor. eg, the magic visual effect on my weapon. Also, if an actor is knocked down (but still alive) the weapon is still able to push them around without them getting up. So why is it going wrong when they're dead?

Link to comment
Share on other sites

looking for advice from ny knowledgeable scripters ^^

 

i've noticed that all of the other effects still happen when i hit a dead actor. eg, the magic visual effect on my weapon. Also, if an actor is knocked down (but still alive) the weapon is still able to push them around without them getting up. So why is it going wrong when they're dead?

 

I believe this has to do with havok modifiers applied when corpses are dead. You might consider looking at Realistic Ragdolls and Force mod to see what it's changing. http://skyrim.nexusmods.com/downloads/file.php?id=601, or there was another one that adjusted how ragdolls behaved when the NPC was dead. I use that mod, but I am not at my home machine to check the name.

 

-MM

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...