Background for Starfield
Member of the SpaceshipReference script
voidfunctionSetPartPower(intaiShipPartID, intaiShipPartIndex, intaiPower)Native

Description

Documentation Comment

Sets the amount of power allocated to a given part
valid aiShipPartIDs 0 - Weapons, 1 - Engine, 2 - Shields, 3 - Gravdrive, 4 - Generator
specify -1 for the aiShipPartIndex to set the power of all the parts of the specified type (such as weapons)


Caveats


Parameters

intaiShipPartID

intaiShipPartIndex

intaiPower


Examples

Auto-Generated Example

int myInt__aiShipPartID
int myInt__aiShipPartIndex
int myInt__aiPower

mySpaceshipReference__toCallFunctionOn.SetPartPower(myInt__aiShipPartID, myInt__aiShipPartIndex, myInt__aiPower)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.