- Found in:
- Workshop Framework
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
ObjectReferenceakToRef
Examples
Auto-Generated Example
ObjectReference myObjectReference__akToRef
WorkshopScript returnedValue = WorkshopFramework:WSFW_API.GetNearestWorkshop(myObjectReference__akToRef)