SwitchToPowerArmor - Actor
Member of: 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.
SyntaxEdit
Function SwitchToPowerArmor(ObjectReference aArmorFurniture) native
ParametersEdit
- 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 ValueEdit
None.
ExamplesEdit
; Snap the dude into awesome armor
TheDude.SwitchToPowerArmor(AwesomeArmor)
; Get the dude out of his armor
TheDude.SwitchToPowerArmor(None)
NotesEdit
- Don't call this immediately after enabling the actor in question. If you might do that, call SwitchToPowerArmor before calling Enable().
- If you take an actor out of power armor with SwitchToPowerArmor(None), you can get access to the suit they just got out of by using ActorThatJustGotOut.GetLinkedRef(LinkPowerArmorKeyword)