wiremod-svn-archive/wire/lua/entities/gmod_wire_gps/cl_init.lua
2008-06-14 00:55:20 +00:00

21 lines
537 B
Lua

ENT.Spawnable = false
ENT.AdminSpawnable = false
include('shared.lua')
function ENT:Think()
self.BaseClass.Think(self)
local pos = self.Entity:GetPos()
local txt = "Position = " .. math.Round(pos.x*1000)/1000 .. "," .. math.Round(pos.y*1000)/1000 .. "," .. math.Round(pos.z*1000)/1000
self.Entity:SetNetworkedBeamString( "GModOverlayText", txt )
//self.Entity:SetNetworkedString( "GModOverlayText", txt )
--self.BaseClass.BaseClass.SetOverlayText( self, txt )
self.Entity:NextThink(CurTime()+0.04)
return true
end