wiremod-svn-archive/wire/lua/entities/gmod_wire_button/shared.lua
tad2020 f4759aef8f fixed small bug with my Increment/Decrement gate
added that flashing thing that gmod buttons do
2007-05-16 04:37:10 +00:00

21 lines
383 B
Lua

ENT.Type = "anim"
ENT.Base = "base_wire_entity"
ENT.PrintName = ""
ENT.Author = ""
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = ""
ENT.Spawnable = false
ENT.AdminSpawnable = false
function ENT:SetOn( bOn )
self.Entity:SetNetworkedBool( "OnOff", bOn, true )
end
function ENT:IsOn()
return self.Entity:GetNetworkedBool( "OnOff" )
end