- Found in:
- Vanilla
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)