wire/lua/entities/gmod_wire_data_store.lua
2013-08-08 14:03:04 +01:00

16 lines
448 B
Lua

AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Data Storer"
ENT.WireDebugName = "Data Store"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Values = {A=0, B=0, C=0, D=0, E=0, F=0, G=0, H=0}
end
duplicator.RegisterEntityClass("gmod_wire_data_store", WireLib.MakeWireEnt, "Data")