blob: 060eba8899f8b100eb1e158767c6792ed85114bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--This file is to help developers add new structures to the game!
STRUCT = {}
--A name for this structure, each type of structure must have a different name
STRUCT.Name = "Example Structure"
--The model for this structure.
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!")
end
--If this structure is not like every other structures of the same name (for example, if it has an internal inventory)
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!")
end
--Don't forget to register the structure when you're done!
registerStructure(STRUCT)
|