Difference between revisions of "StoreInWorkshop - ObjectReference"

Move categories to bottom of page and added links to the page.
imported>Illyism
imported>Qazaaq
(Move categories to bottom of page and added links to the page.)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
'''Member of:''' [[ObjectReference Script]]
'''Member of:''' [[ObjectReference Script]]


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


== Syntax ==
== Syntax ==
Line 11: Line 9:


== Parameters ==
== Parameters ==
*akBaseItem: The base object of the item to store.
*akBaseItem: The [[Base Object]] of the item to store.
*aiCount: How many of the base object to store. (Must be at least 1)
*aiCount: How many of the [[Base Object]] to store. (Must be at least 1)
**'''Default''': 1
**'''Default''': 1


Line 25: Line 23:


== Notes ==
== 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.
*If the [[Base Object]] is not buildable by the [[Player]] because the player doesn't meet the [[Constructible Object|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 - ObjectReference|OnWorkshopObjectDestroyed]] for scripted object cleanup.
This will not trigger [[OnWorkshopObjectDestroyed - ObjectReference|OnWorkshopObjectDestroyed]] for scripted object cleanup.


== See Also ==
== See Also ==
*[[Workshop]]
*[[Workshop Container]]
*[[Constructible Object]]
*[[ObjectReference Script]]
*[[ObjectReference Script]]
[[Category:Scripting]]
[[Category:Papyrus]]
Anonymous user