Re: Making new Area's through Lua
Asklar wrote:
Well, when you say dinamically you mean like the LZ that moves around the brainbot?
Maybe you should see that script, there might be something useful in there.
Unfortunately, the landing zone around the brain bot is hard coded. The brain bot lz is just the lz if no other was defined.
Does anyone actually have a list for all the LZ related function. The only ones I can find are
and
Help?
Edit:
Any area related function will also help
Only ones I know of are
Though I don't how SetArea actually works. Anybody?
Edit2:
Solved
Code:
local area = Area()
local box = Box()
box.Corner = Vector(TeamSpawnX2[team] , 500)
box.Height = 1000
box.Width = TeamSpawnX1[team] - TeamSpawnX2[team]
area:AddBox(box)
self:SetLZArea(team, area);
self:SetBrainLZWidth(team, 0);