GetFlyingState - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Gets the current flying state of this actor.

Syntax

int Function GetFlyingState() native

Parameters

None

Return Value

The current flying state of the actor, which may be one of the following:

  • 0: Not flying
  • 1: Taking off
  • 2: Cruising
  • 3: Hovering
  • 4: Landing

Examples

; Is the dragon hovering?
if (Dragon.GetFlyingState() == 3)
  Debug.Trace("The dragon is currently hovering")
endIf

See Also