GetActorMovementFlags

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns a bitmask of the calling actor's current movement flags.

Actor Movement Flags

1	Forward
2	Backward
4	Left
8	Right
16	Turn Left
32	Turn Right
256	Walking
512	Running
1024	Sneaking
2048	Swimming
4096	Jumping
8192	Flying
16384	Falling
32768	Sliding

Syntax

[help]
(movementFlags:int) reference.GetActorMovementFlags

Example

set iMovementFlags to actorRef.GetActorMovementFlags
if eval (iMovementFlags & 1280) == 1280
	; Actor is sneaking and walking
endif