Difference between revisions of "IsInPowerArmor - Actor"
Jump to navigation
Jump to search
imported>Fceeh m (Fix Code) |
EgoBallistic (talk | contribs) (→Notes: Added note that function is unreliable and WornHasKeyword(IsPowerArmorFrame) is a better alternative) |
||
Line 28: | Line 28: | ||
== Notes == | == Notes == | ||
* Entering the Power Armor is a race change. Take this into consideration when using this function. | * 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 <code>akActor.WornHasKeyword(isPowerArmorFrame)</code> | |||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |
Latest revision as of 16:25, 15 August 2023
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)