IsInPowerArmor - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Returns true if the actor is in Power Armor.

Syntax[edit | edit source]

bool Function IsInPowerArmor()

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

True or False

Examples[edit | edit source]

; Is the player in power armor?
if (Game.GetPlayer().IsInPowerArmor())
  Debug.Trace("The player is in Power Armor")
Else
  Debug.Trace("The player is NOT in Power Armor")
endIf

Notes[edit | edit source]

  • Entering the Power Armor is a race change. Take this into consideration when using this function.
  • This function works inconsistently on NPCs. A more reliable alternative is to use akActor.WornHasKeyword(isPowerArmorFrame)

See Also[edit | edit source]