Is there a way to knock an actor down and keep in ragdoll fo

Post » Mon Nov 19, 2012 6:29 am

I'd like to get a similar effect like when you drained an actor's fatigue below 0 or rendered unconscious an essential actor in oblivion but I've been unable to replicate it in skyrim! "Pushactoraway" puts the actor in ragdoll but only for a second and then she or he gets up again ._. and I tried paralysis too but it doesn't look very realistic (actually it looks creepy!)
User avatar
Dustin Brown
 
Posts: 3307
Joined: Sun Sep 30, 2007 6:55 am

Post » Mon Nov 19, 2012 3:10 am

You could try calling http://www.creationkit.com/PushActorAway_-_ObjectReference with 0 force often enough that they can't get up until you decide to stop calling it.

Cipscis
User avatar
Big Homie
 
Posts: 3479
Joined: Sun Sep 16, 2007 3:31 pm

Post » Mon Nov 19, 2012 5:13 am

Oh thank you! That was a really fast answer!

Anyways I just tried what you said aaaaaand...

This little epileptic breakdance in the air was really funny!

But it's still not what I'm looking for! ^^

BUT but but if anyone is interested to see how that worked this is the script I used (magic effect):
Scriptname mslVTFeedFaintSCR extends activemagiceffectactor Targetactor CasterEvent OnEffectStart(Actor akTarget, Actor akCaster)Target = akTargetCaster = akCasterRegisterForSingleUpdate(0.1)EndeventEvent OnUpdate()Caster.PushActorAway(Target, 0.0)RegisterForSingleUpdate(0.1)Endevent

For anyone who'd like to make... an electrocution torture spell? ^_~
User avatar
emma sweeney
 
Posts: 3396
Joined: Fri Sep 22, 2006 7:02 pm

Post » Sun Nov 18, 2012 9:10 pm

It doesn't just take 0.1 seconds for an Actor to recover from PushActorAway, perhaps try increasing the length to 2 or 3 seconds and see if that works better for you?

While perusing the http://www.creationkit.com/Category:Papyrus on the wiki, I noticed a function called http://www.creationkit.com/ForceAddRagdollToWorld_-_ObjectReference exists in the http://www.creationkit.com/ObjectReference_Script. The description on the wiki isn't particularly useful and I can't access Skyrim's Papyrus source at the moment to see where/if it's used in the vanilla game, but it might be something you'd find useful for this.

Cipscis
User avatar
ONLY ME!!!!
 
Posts: 3479
Joined: Tue Aug 28, 2007 12:16 pm

Post » Mon Nov 19, 2012 12:30 am

It doesn't just take 0.1 seconds for an Actor to recover from PushActorAway, perhaps try increasing the length to 2 or 3 seconds and see if that works better for you?

But I don't want the targets to recover! They're supposed to stay down and lie still and play dead.

While perusing the http://www.creationkit.com/Category:Papyrus on the wiki, I noticed a function called http://www.creationkit.com/ForceAddRagdollToWorld_-_ObjectReference exists in the http://www.creationkit.com/ObjectReference_Script. The description on the wiki isn't particularly useful and I can't access Skyrim's Papyrus source at the moment to see where/if it's used in the vanilla game, but it might be something you'd find useful for this.

Cipscis

Hum... the description sounds just like what I'm looking for but I just tested it and it didn't do anything, I even tried it with pushactoraway to ragdoll the target but he just got up normally ._.
User avatar
Roy Harris
 
Posts: 3463
Joined: Tue Sep 11, 2007 8:58 pm

Post » Mon Nov 19, 2012 6:37 am

Actors don't get up after just 0.1 seconds, so you shouldn't need to push them again so often. If I remember correctly, they generally take 2-3 seconds to get up, but you could experiment a little bit until you find the shortest interval necessary, but it's a good rule of thumb to only run code as often as necessary and not as often as possible.

I'd recommend searching through your Source folder for uses of that function. If it's used in there, it might help you figure out whether or not it can help you and how you might be able to use it.

Cipscis
User avatar
Charlotte Buckley
 
Posts: 3532
Joined: Fri Oct 27, 2006 11:29 am

Post » Sun Nov 18, 2012 11:47 pm

Actors don't get up after just 0.1 seconds, so you shouldn't need to push them again so often. If I remember correctly, they generally take 2-3 seconds to get up, but you could experiment a little bit until you find the shortest interval necessary, but it's a good rule of thumb to only run code as often as necessary and not as often as possible.

Aaaah okay I'll try that!

I'd recommend searching through your Source folder for uses of that function. If it's used in there, it might help you figure out whether or not it can help you and how you might be able to use it.

Cipscis

Awh... I'd love to but do you maybe know a method to do that that doesn't involve opening and searching each of the 11551 scripts in my source folder? ^^




On another note do you know anything about the animation graph functions? I don't understand what they do (what variables is the wiki talking about?) but they sound like something which maybe related
User avatar
Keeley Stevens
 
Posts: 3398
Joined: Wed Sep 06, 2006 6:04 pm

Post » Mon Nov 19, 2012 12:24 am

Sorry, I don't really know anything at all about animation.

I think Windows Explorer might be able to search their contents for you, but I generally use the grep function from http://www.cygwin.com/. If you want a similar tool with a GUI you could try http://www.wingrep.com/download.htm.

Cipscis
User avatar
Kitana Lucas
 
Posts: 3421
Joined: Sat Aug 12, 2006 1:24 pm

Post » Mon Nov 19, 2012 12:29 am

You can use target.setunconscious(1) and (0) to make them pass out. He will simply fall to the ground and stay down untill you turn it off again with ...(0).

Hope it helped
User avatar
Claire Mclaughlin
 
Posts: 3361
Joined: Mon Jul 31, 2006 6:55 am


Return to V - Skyrim