Jump to content

Adding settlement objects to the workshop


Recommended Posts

If you mean placing them then yes as long as they are not power grid (generating or transmitting) objects.

After PlaceAtMe call thisObjectRef.SetLinkedRef(thisWorkshopRef, pWorkshopItemKeyword)

then if it is a resource object call (pWorkshopParent as WorkshopParentScript).BuildObjectPUBLIC(thisObjectRef, thisWorkshopRef)

 

Link to comment
Share on other sites

Again for not power grid (generating or transmitting) objects, else you will generate SCRAP CRASH conditions:

thisWorkshopRef.StoreInWorkshop(thisObjectRef.GetBaseObject(), aiCount = 1) ; this does not trigger event OnWorkshopObjectDestroyed()

thisObjectRef.SetLinkedRef(none,pWorkshopItemKeyword)

thisObjectRef.Disable()

thisObjectRef.Delete()

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...