SetAllowFlyingEx - Actor

Revision as of 09:20, 15 June 2012 by imported>JLundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Actor Script ''(Requires 1.6)'' Sets whether this actor is allowed to fly or not. If not, and they are flying...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script (Requires 1.6)

Sets whether this actor is allowed to fly or not. If not, and they are flying, will land the actor. This is an extended version of SetAllowFlying - Actor.

SyntaxEdit

Function SetAllowFlyingEx(bool abAllowed = true, bool abAllowCrash = true, bool abAllowSearch = false) native

ParametersEdit

  • abAllowed: Whether to allow the actor to fly or not.
    • Default: True
  • abAllowCrash : Whether to allow the use of crash landing markers.
    • Default: True
  • abAllowSearch : Whether to allow for a procedural search for a landing spot.
    • Default: False

Return ValueEdit

None.

ExamplesEdit

; Set Dragon to be allowed to fly, and allow a search
Dragon.SetAllowFlyingEx(abAllowSearch = true)


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

See AlsoEdit