StoreInWorkshop - ObjectReference

Revision as of 20:07, 7 March 2020 by imported>Qazaaq (Added categories.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

If the reference is a Workshop Container, stores the given object with an optional count.

SyntaxEdit

Function StoreInWorkshop(Form akBaseItem, int aiCount = 1) native

ParametersEdit

  • akBaseItem: The Base Object of the item to store.
  • aiCount: How many of the Base Object to store. (Must be at least 1)
    • Default: 1

Return ValueEdit

None.

ExamplesEdit

; Store 10 widgets in our Workshop
MyWorkshop.StoreInWorkshop( WidgetForm, 10 )

NotesEdit

  • If the Base Object is not buildable by the Player because the player doesn't meet the recipe's conditions, this function won't force it to show in the build menu. It will show up once the player passes the conditions.
  • This will not trigger OnWorkshopObjectDestroyed for scripted object cleanup.

See AlsoEdit