Background for Fallout 4
Member of the WSFWIdentifier script
WSFWIdentifier:PowerGridStatisticsfunctionCheckAndFixPowerGridWithFilter(ObjectReferenceworkshop_ref, intfixerrors, int[]gridFilter)NativeGlobal

Description

Documentation Comment

Checks and optionally fixes errors of settlement power grids. Takes an array of power grid indices as a filter parameter. Returns statistics data in PowerGridStatistics struct. Logs results.
fixerrors = 0 - check settlement for power grid errors, but don't fix anything
fixerrors = 1 - check settlement for power grid errors, and fix errors by removing bad power grids entirely (not recommended legacy feature)
fixerrors = 2 - check settlement for power grid errors, and fix errors by cleaning bad power grids by removing invalid power nodes only (recommended)


Parameters

  1. ObjectReferenceworkshop_ref

  2. intfixerrors

  3. int[]gridFilter


Examples

Auto-Generated Example

ObjectReference myObjectReference__workshop_ref
int myInt__fixerrors
int[] myIntArray__gridFilter

WSFWIdentifier:PowerGridStatistics returnedValue = WSFWIdentifier.CheckAndFixPowerGridWithFilter(myObjectReference__workshop_ref, myInt__fixerrors, myIntArray__gridFilter)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.