- Found in:
- Workshop Framework
intfunctionGetPowerGridIndexForObject(ObjectReferenceworkshop_ref, ObjectReferencerefObject)NativeGlobal
Description
Documentation Comment
Gets the index of the power grid of an existing settlement object. Returns a negative number on errors.
Caveats
Parameters
ObjectReferenceworkshop_ref
ObjectReferencerefObject
Examples
Auto-Generated Example
ObjectReference myObjectReference__workshop_ref
ObjectReference myObjectReference__refObject
int returnedValue = WSFWIdentifier.GetPowerGridIndexForObject(myObjectReference__workshop_ref, myObjectReference__refObject)