From 6f6cce0561c19e7af14bcc6e6b1c7de2d5efc530 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 29 Apr 2016 20:30:52 -0400 Subject: a halfway commit to show scott --- gamemode/itemsystem/items/baits.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gamemode/itemsystem/items/baits.lua (limited to 'gamemode/itemsystem/items/baits.lua') diff --git a/gamemode/itemsystem/items/baits.lua b/gamemode/itemsystem/items/baits.lua new file mode 100644 index 0000000..47bf1d0 --- /dev/null +++ b/gamemode/itemsystem/items/baits.lua @@ -0,0 +1,26 @@ +ITEM = {} + +ITEM.Name = "Baits" +ITEM.Description = "Something you can plant!" +ITEM.Icon = "test.png" +ITEM.UniqueData = false + +local drop1 = function(player) + print("Drop 1 called") +end + +local dropall = function(player) + print("Drop all called") +end + +local dropx = function(player) + print("Drop x called") +end + +ITEM.Actions = {} +ITEM.Actions["Drop"] = {} +ITEM.Actions["Drop"]["Drop 1"] = drop1 +ITEM.Actions["Drop"]["Drop all"] = dropall +ITEM.Actions["Drop"]["Drop X"] = dropx + +GMS.RegisterResource(ITEM) -- cgit v1.2.3-70-g09d2