Jump to content

[Scriting] How to catch/check when player ragdolls?


Nymra

Recommended Posts

Posted

I wondered if its possible to successfully register for an event to catch when the player is ragdolling?

I like ragdoll, but I hate that it fucks up stuff (hard... very hard) and now I m searching for solutions...

 

for example

"if ragdoll, loop wait until no longer ragdolling"
or 
"if ragdoll, wait X, then force the PC to get up"

 

I found this thread but the solution described there somehow... does not work, while I do not rule out I did it wrong :( 

 

http://www.gamesas.com/how-detect-when-actor-the-ragdoll-state-t260359.html

my currenct attempt (one time it caught the "get up" thing :( )
 

Event OnAnimationEvent(ObjectReference akSource, string asEventName)

if (akSource != cfgqst.PlayerRef) 

	if asEventName == "RemoveCharacterControllerFromWorld"
	PlayerIsRagdolling = true
	
	elseif asEventName == "GetUpEnd"
	PlayerIsRagdolling = false
	endif
endif

EndEvent

 

this did not catch anything. Also I the trace messages never appeared, while this could be connected to the game not doing it anymore in that state. 

any ideas? 

Posted
7 minutes ago, Monoman1 said:

There's an 'UnRagdoller' (quest + script) in the SLS beta. Have a look at that.

 

will do, thx!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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