Difference between revisions of "Drop"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>Jazzisparis |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Function | |||
|CSWikiPage = Drop | |||
|origin = GECK1 | |||
|summary = Calling actor drops the specified item(s) in the world at his/her feet. | |||
|name = Drop | |||
|returnType = void | |||
Calling actor drops the specified item(s) in the world at his/her feet. | |referenceType = [ActorRefID] | ||
|arguments = | |||
{{FunctionArgument | |||
|Name = ObjectID | |||
|Type = ref | |||
}}{{FunctionArgument | |||
|Name = Count | |||
|Type = int | |||
}} | |||
|example = Drop Caps001 2 | |||
}} | |||
==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 when called on the player. | * Does NOT appear to trigger OnDrop blocks when called on the player. | ||
* 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. - Not confirmed for "Health" and "Value". | ||
* 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 Baseball Bats, 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 Baseball Bats, they may be the 3 with the least health, most health, etc. | ||
==See Also== | ==See Also== | ||
[[DropMe]] | *[[DropAlt]] | ||
*[[DropMe]] | |||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 21:20, 23 September 2015
< [[::Category:Functions|Category:Functions]]
Link to TES4 Construction Set Wiki: Drop.
A function included in the GECK version 1.1.0.36.
Description
Calling actor drops the specified item(s) in the world at his/her feet.
Syntax
[ActorRefID].Drop ObjectID:ref Count:int
Example
Drop Caps001 2
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.
- Does NOT appear to trigger OnDrop blocks when called on the player.
- Item stats (i.e., Health, Charges, Script Variables) are reset as if it's a new item. - Not confirmed for "Health" and "Value".
- 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 Baseball Bats, they may be the 3 with the least health, most health, etc.