aboutsummaryrefslogtreecommitdiff
path: root/doc/structs/dropped_item.md
diff options
context:
space:
mode:
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