DropObject - ObjectReference
Revision as of 15:12, 17 March 2016 by imported>Plplecuyer
Member of: ObjectReference Script
Drops the specified base object from this object's inventory.
SyntaxEdit
ObjectReference Function DropObject(Form akObject, int aiCount = 1) native
ParametersEdit
- akObject: The base object to drop from the inventory.
- aiCount: How many to drop
- Default: 1
Return ValueEdit
The object that was dropped.
ExamplesEdit
; Drops one chest from the player's inventory, and unlocks it
Game.GetPlayer().DropObject(ChestProperty).Lock(false)
; Drops one hundred arrows from the player's inventory
Game.GetPlayer().DropObject(ArrowProperty, 100)
NotesEdit
This will not drop a specific reference - if you want to drop a specific reference, then call Drop() on it instead.