GetAnimationVariableInt("iState") == 63 ;- in water.

Post » Fri Nov 16, 2012 5:47 pm

So thanks to moder "Banned" I just found out that:

ActorREF.GetAnimationVariableInt("iState") == 63 ;--- means they are in water

Anyone know any more IState number meanings?
User avatar
koumba
 
Posts: 3394
Joined: Thu Mar 22, 2007 8:39 pm

Post » Sat Nov 17, 2012 2:43 am

Guh. Seriously? It's that easy?

Anyone know how to test these? I suppose you could write a short loop to ping it to trace / notification periodically when running / jumping / crouching / blocking / etc.

And by "in water", you mean "they are swimming"?
User avatar
Marta Wolko
 
Posts: 3383
Joined: Mon Aug 28, 2006 6:51 am

Post » Fri Nov 16, 2012 3:01 pm

Probably "they are swimming". Banned may know a lot more as it was in his script (one he posted).

Guh. Seriously? It's that easy?

Anyone know how to test these? I suppose you could write a short loop to ping it to trace / notification periodically when running / jumping / crouching / blocking / etc.

And by "in water", you mean "they are swimming"?
User avatar
nath
 
Posts: 3463
Joined: Mon Jan 22, 2007 5:34 am

Post » Fri Nov 16, 2012 12:11 pm

I can't replicate this. I get an iState of 0 mostly all the time, except for when I'm sprinting or sneaking. I get sneaking = 2 and sprinting = 1. We of course already have player.IsSneaking() and IsSprinting() for those.
User avatar
Jessica White
 
Posts: 3419
Joined: Sun Aug 20, 2006 5:03 am


Return to V - Skyrim