Background for Starfield
Member of the SpaceshipReference script
voidfunctionLockPowerAllocation(intaiShipPartID, intaiShipPartIndex, boolabLock=true)Native

Description

Documentation Comment

Lock the power allocation of a specific part to keep the AI from modifying it
valid aiShipPartIDs 0 - Weapons, 1 - Engine, 2 - Shields, 3 - Gravdrive, 4 - Generator
pass -1 to aiShipPartIndex to lock/unlock the power of all the parts of the specified type
This will also keep the AI from repairing a damaged part


Caveats


Parameters

intaiShipPartID

intaiShipPartIndex

boolabLock=true


Examples

Auto-Generated Example

int myInt__aiShipPartID
int myInt__aiShipPartIndex
bool myBool__abLock

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