aboutsummaryrefslogtreecommitdiff
path: root/doc/structs/dropped_item.md
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-04-02 20:05:56 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-04-02 20:05:56 -0400
commit191ba416c8b611ea4901cead138789a357c56134 (patch)
treeb30ae3473c16028a14d3ed0c80633f360cc1c914 /doc/structs/dropped_item.md
parenta22cbeddc5f8fb61e87a30aa14ba354de5cf4431 (diff)
downloadartery-191ba416c8b611ea4901cead138789a357c56134.tar.gz
artery-191ba416c8b611ea4901cead138789a357c56134.tar.bz2
artery-191ba416c8b611ea4901cead138789a357c56134.zip
I finally had some time to work on this... dependency added on bobbleheadbob's zone addon
Diffstat (limited to 'doc/structs/dropped_item.md')
-rw-r--r--doc/structs/dropped_item.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/structs/dropped_item.md b/doc/structs/dropped_item.md
new file mode 100644
index 0000000..ffabfbd
--- /dev/null
+++ b/doc/structs/dropped_item.md
@@ -0,0 +1,14 @@
+# Dropped item
+
+Droped items are represented as a name-data combo
+
+ local i = <table_item>
+ local e = ents.Create("art_droppeditem")
+ e.Item = {
+ Name = i.Name
+ Data = i:Serialize()
+ }
+
+This structure is used in:
+* gamemode/core/inventory/sv_invtracker.lua
+* entities/entities/art_droppeditem/init.lua