SetAllowFlying - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Sets whether this actor is allowed to fly or not. If not, and they are flying, will land the actor.

Syntax

Function SetAllowFlying(bool abAllowed = true) native

Parameters

  • abAllowed: Whether to allow the actor to fly or not.
    • Default: True

Return Value

None.

Examples

; Set Dragon to be allowed to fly
Dragon.SetAllowFlying()


; Set Emu to not be allowed to fly
Emu.SetAllowFlying(false)

See Also