[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "Drop"
Jump to navigation
Jump to search
m
no edit summary
imported>QQuix (Added a note about persistent references dropped on exterior cells) |
imported>Diarrhoe m |
||
Line 1: | Line 1: | ||
'''Syntax:''' | '''Syntax:''' | ||
[''ActorID''.]Drop ''ObjectID'' ''count'' | [''ActorID|ContainerID''.]Drop ''ObjectID'' ''count'' | ||
'''Example:''' | '''Example:''' | ||
Line 9: | Line 9: | ||
==Notes== | ==Notes== | ||
* While '''set pRef to player.Drop SomeItem 1''' will compile and run, pRef will remain null (00000000) and won't be of any use. | * While '''set pRef to player.Drop SomeItem 1''' will compile and run, pRef will remain null (00000000) and won't be of any use. | ||
* Does NOT appear to trigger OnDrop blocks | * Does NOT appear to trigger OnDrop blocks. | ||
* Item stats (i.e., Health, Charges, Script Variables) are reset as if it's a new item. | * Item stats (i.e., Health, Charges, Script Variables) are reset as if it's a new item. | ||
* If using to only drop a part of a stack of items, it's unclear ''which'' will be dropped. For instance, if you drop 3 of 5 Iron Swords, they may be the 3 with the least health, most health, etc. | * If using to only drop a part of a stack of items, it's unclear ''which'' will be dropped. For instance, if you drop 3 of 5 Iron Swords, they may be the 3 with the least health, most health, etc. |