Code: Select all
function widget:GetInfo()
return {
name = "Start Point Remover",
desc = "Deletes your start point once the game begins",
author = "TheFatController and jK and zwzsg",
date = "Jul 11, 2007",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
function widget:GameFrame(f)
if f > 5 then
for _,t in ipairs(Spring.GetTeamList()) do
local x,y,z = Spring.GetTeamStartPosition(t)
Spring.MarkerErasePosition(x or 0, y or 0, z or 0)
end
widgetHandler:RemoveWidget()
end
end
Also: I am blue and the AI is red. The AI startpoint is blue and I can delete it manually.
Using:
Spring.Echo("Deleting ("..(x or "nil")..","..(y or "nil")..","..(z or "nil")..")")
I got:
[ 7] Deleting (1024,100,1024)
[ 7] Deleting (nil,nil,nil)
[ 7] Deleting (nil,nil,nil)
I suppose that means there are three teams (Me, the AI, and I guess Gaia) but that only me got the startpos set.