summaryrefslogtreecommitdiff
path: root/gamemode/structuresystem/structures/aaaStructureExample.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-06-20 15:33:39 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-06-20 15:33:39 -0400
commite879c365577b0cc51c48bace7cd5fb52cdc26eaa (patch)
tree822a52cf38efd6815f2b7483cf6369e68c3dab23 /gamemode/structuresystem/structures/aaaStructureExample.lua
parentf797cbe348dd52b51da4cd4812cfa291d1434095 (diff)
downloadgmstranded-e879c365577b0cc51c48bace7cd5fb52cdc26eaa.tar.gz
gmstranded-e879c365577b0cc51c48bace7cd5fb52cdc26eaa.tar.bz2
gmstranded-e879c365577b0cc51c48bace7cd5fb52cdc26eaa.zip
Re-syncing last updated copyHEADmaster
Diffstat (limited to 'gamemode/structuresystem/structures/aaaStructureExample.lua')
-rw-r--r--gamemode/structuresystem/structures/aaaStructureExample.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/gamemode/structuresystem/structures/aaaStructureExample.lua b/gamemode/structuresystem/structures/aaaStructureExample.lua
index abe91ba..f8abb3c 100644
--- a/gamemode/structuresystem/structures/aaaStructureExample.lua
+++ b/gamemode/structuresystem/structures/aaaStructureExample.lua
@@ -6,11 +6,11 @@ STRUCT = {}
STRUCT.Name = "Example Structure"
--The model for this structure.
-STRUCT.Model = "models/props/de_inferno/ClayOven.mdl"
+STRUCT.Model = "models/props_combine/breendesk.mdl"
--The initalize method. Called on both the server and the client
STRUCT.onInitialize = function(self)
- print("Initalize called!")
+ --print("Initalize called!")
end
--If this structure is not like every other structures of the same name (for example, if it has an internal inventory)
@@ -18,5 +18,8 @@ STRUCT.uniquedata = false
--Called when a player presses e on this structure, called on both the server and the client. Keep in mind that on the client side, ply may not be the local player!
STRUCT.onUse = function(self,ply)
- print("onUse called!")
+ --print("onUse called!")
end
+
+--Don't forget to register the structure when you're done!
+registerStructure(STRUCT)