IsInPowerArmor - Actor
Revision as of 16:25, 15 August 2023 by EgoBallistic (talk | contribs) (→Notes: Added note that function is unreliable and WornHasKeyword(IsPowerArmorFrame) is a better alternative)
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)