Jump to content

Any ideas on how to force ragdoll on an actor?


Hjorr

Recommended Posts

I'm trying to figure out a way to simulate a knock out other than by using the paralyze spell.

 

My goal is to force the target of a knock out magic effect to ragdoll for the spell duration.

 

Do you know how to force the target to ragdoll effectively? I know there is a forceaddragdolltoworld command but I don't know how to make the target behave like a true chewing gum.

 

 

 

 

Here is my script:

 

 

ScriptName KnockOutSpellScript extends activemagiceffect

 

Event OnEffectStart(Actor akTarget, Actor akCaster)

 

If akTarget.isdead()

akTarget.DispelallSpells()

 

else

 

akTarget.stopcombat()

akTarget.setalert (false)

akTarget.setnotshowonstealthmeter (true)

akTarget.setunconscious()

 

utility.wait (29)

 

akTarget.setunconscious(false)

akTarget.set

akTarget.setnotshowonstealthmeter (false)

akTarget.setalert (true)

 

utility.wait (15)

 

akTarget.setalert (false)

 

endif

 

endevent

Edited by Hjorr
Link to comment
Share on other sites

  • Recently Browsing   0 members

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