Is the Idx of a entity static or dynamic?
[lua]
function GetIdx(ply)
local tr = ply:GetEyeTrace()
if ValidEntity(tr.Entity) then
ply:ChatPrint(tr.Entity.EntIndex())
end
end
concommand.Add(“rp_getidx”,GetIdx)
[/lua]
Why does that always print 0 when looking at a entity?