Detecting if the player is falling ?

Post » Thu Sep 26, 2013 4:25 am

Hi there.

Could someone help me ? I'm looking for a way to detect if the player's falling, for example from the edge of a mountain etc, while he's NOT being ragdolled, aka. while he's playing the "fall" animation.

Thanks in advance !

Sag'

User avatar
Reanan-Marie Olsen
 
Posts: 3386
Joined: Thu Mar 01, 2007 6:12 am

Post » Thu Sep 26, 2013 3:48 pm

I think I've finally figured this one out... so simple...

Actor kActorFunction SomeFunction()    if kActor.GetAnimationVariableBool("bInJumpState")        Debug.Notification("Help! I'm falling!")    endIfendFunction

Or as a condition function

GetGraphVariableInt / bInJumpState / == / 1

No idea about the ragdoll thing though. It may or may not work. Maybe there is another animationvariable for ragdoll.

User avatar
Steve Fallon
 
Posts: 3503
Joined: Thu Aug 23, 2007 12:29 am


Return to V - Skyrim