24 lines
513 B
Lua
24 lines
513 B
Lua
|
|
||
|
AddCSLuaFile( "cl_init.lua" )
|
||
|
AddCSLuaFile( "shared.lua" )
|
||
|
|
||
|
include('shared.lua')
|
||
|
|
||
|
ENT.WireDebugName = "Value"
|
||
|
ENT.OverlayDelay = 0
|
||
|
|
||
|
function ENT:Initialize()
|
||
|
self.Entity:PhysicsInit( SOLID_VPHYSICS )
|
||
|
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
|
||
|
self.Entity:SetSolid( SOLID_VPHYSICS )
|
||
|
|
||
|
self.Outputs = Wire_CreateOutputs(self.Entity, { "Out" })
|
||
|
end
|
||
|
|
||
|
function ENT:Setup(value)
|
||
|
self.Value = value
|
||
|
|
||
|
self:SetOverlayText(self.Value)
|
||
|
Wire_TriggerOutput(self.Entity, "Out", self.Value)
|
||
|
end
|