DropObject - ObjectReference: Difference between revisions

imported>AmethystDeceiver
imported>AmethystDeceiver
Line 33: Line 33:
* If a number greater than 1 is used for aiCount, the objects dropped will be stacked. In order to drop individual items, DropObject must be called for each instance of the item.
* If a number greater than 1 is used for aiCount, the objects dropped will be stacked. In order to drop individual items, DropObject must be called for each instance of the item.
* If akObject is equipped, the game will first search for unequipped items in inventory to drop.  Only when there are no more unequipped items will it drop the equipped items.
* If akObject is equipped, the game will first search for unequipped items in inventory to drop.  Only when there are no more unequipped items will it drop the equipped items.
* if akObject is a permanently-persistent reference, DropObject will not return a FormID value, even though it still drops the object from the inventory.
* if akObject is a permanently-persistent reference, DropObject will not return a Form ID value for the ObjectReference, even though it still physically drops the object from the inventory. If you need to run further ObjectReference Functions onto the dropped object, you will need to refer to that object's reference ID directly.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]