Background for Fallout 4
Member of the ObjectReference script
voidfunctionStoreInWorkshop(FormakBaseItem, intaiCount=1)Native

Description

Wiki Description

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

Documentation Comment

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


Caveats

CK Wiki - Notes

  • 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.

Parameters

FormakBaseItem

CK Wiki Description

The Base Object of the item to store.

intaiCount=1

CK Wiki Description

How many of the Base Object to store. (Must be at least 1)

  • Default:1

Examples

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

Auto-Generated Example

Form myForm__akBaseItem
int myInt__aiCount

myObjectReference__toCallFunctionOn.StoreInWorkshop(myForm__akBaseItem, myInt__aiCount)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.