Background for Fallout 4
Member of the WorkshopFramework:WSFW_API script
<UNKNOWN_SCRIPT: WorkshopScript>functionGetNearestWorkshop(ObjectReferenceakToRef)Global

Description

Documentation Comment

Grabs closest WorkshopScript reference - with some exceptions. If the object is linked to a settlement, it will grab that workshop. If an object is in a workshop's location, it will grab that. Lastly, it will search in a radius to find the closest.


Caveats


Parameters


Examples

Auto-Generated Example

ObjectReference myObjectReference__akToRef

WorkshopScript returnedValue = WorkshopFramework:WSFW_API.GetNearestWorkshop(myObjectReference__akToRef)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.