Mod:Creation Kit/SwitchToPowerArmor - Actor

Member of: Mod:Creation Kit/Actor Script

Near-instantly snap this actor into the inactive suit of power armor aArmorFurniture. If passed "None" while an actor is in power armor, they will get out on the spot; or take a few steps in a random direction before getting out if their back is currently to a wall or other object.

Syntax
Function SwitchToPowerArmor(ObjectReference aArmorFurniture) native

Parameters

 * aArmorFurniture: The inactive armor furniture to snap this actor into. It should not already be in use. It does not need to be enabled for this function to work (and it will be disabled after this function is called). It must be furniture with the "FurnitureTypePowerArmor" keyword. If "None", and this actor is currently in a suit, they will get out where they stand.

Return Value
None.

Examples
TheDude.SwitchToPowerArmor(AwesomeArmor) TheDude.SwitchToPowerArmor(None)
 * Snap the dude into awesome armor
 * Get the dude out of his armor