1function widget:GetInfo()
2  return {
3    name      = "Start Point Adder",
4    desc      = "Add team start points once the game begins",
5    author    = "abma",
6    date      = "July 05, 2011",
7    license   = "GNU GPL, v2 or later",
8    layer     = 0,
9    enabled   = true  --  loaded by default?
10  }
11end
12
13function widget:Initialize()
14	local _, _, spec = Spring.GetPlayerInfo(Spring.GetMyPlayerID())
15	if spec then
16		widgetHandler:RemoveWidget()
17		return false
18	end
19end
20
21function widget:Update()
22	if (Spring.GetGameSeconds() > 0) then
23		local x, y, z = Spring.GetTeamStartPosition(Spring.GetMyTeamID())
24		local id=Spring.GetMyPlayerID()
25		Spring.MarkerAddPoint(x, y, z, "Start " .. id )
26		widgetHandler:RemoveWidget()
27	end
28end
29