1,482
edits
imported>Taleden (added note about trying to DropObject(objectReference)) |
m (Convert source tags to syntaxhighlight) |
||
| Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
ObjectReference Function DropObject(Form akObject, int aiCount = 1) native | ObjectReference Function DropObject(Form akObject, int aiCount = 1) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 20: | Line 20: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Drops one chest from the player's inventory, and unlocks it | ; Drops one chest from the player's inventory, and unlocks it | ||
Game.GetPlayer().DropObject(ChestProperty).Lock(false) | Game.GetPlayer().DropObject(ChestProperty).Lock(false) | ||
</ | </syntaxhighlight> | ||
<br/> | <br/> | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Drops one hundred arrows from the player's inventory | ; Drops one hundred arrows from the player's inventory | ||
Game.GetPlayer().DropObject(ArrowProperty, 100) | Game.GetPlayer().DropObject(ArrowProperty, 100) | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||