From e879c365577b0cc51c48bace7cd5fb52cdc26eaa Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 20 Jun 2016 15:33:39 -0400 Subject: Re-syncing last updated copy --- gamemode/structuresystem/structures/aaaStructureExample.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gamemode/structuresystem/structures/aaaStructureExample.lua') 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) -- cgit v1.2.3-70-g09d2