I dont know if it is possible

say for example you have
[lua]

function ENT:Initialize()

ENT_NUMBER = 0

Entity1 = ents.Create(“prop_dynamic”);
Entity1:SetModel(“dat/model”);
Entity1:Spawn();

Entity2 = ents.Create(“prop_dynamic”);
Entity2:SetModel(“dat/model”);
Entity2:Spawn();

timer.Create(“timer”,1,2,function()
ENT_NUMBER = ENT_NUMBER
ENT_NUMBER = ENT_NUMBER +1

//spawn code here
end)

[/lua]

Is it possible to use ENT_NUMBER with Entity: like

[lua]EntityENT_NUMBER:Spawn() [/lua]

So it will see it as Entity1: and not EntityENT_NUMBER:

I’m sorry if it sounds confusing . I don’t know any other way to enplane it .


(User was banned for this post ("undescriptive thread title" - postal))