I need help about a widget:
I want to write a file with a list of winner teams.
At the moment I do a list of loser teams (it's more easy):
Code: Select all
function widget:TeamDied(TeamID)
local GetPlayerInfo = Spring.GetPlayerInfo
local Echo = Spring.Echo
file = io.open ("rpt.wrm","a")
local name = GetPlayerInfo(TeamID)
file:write("\n" .. name .. "= death2")
file:close()
end
But i want a list of winning team, (would be widget:GameOver() and I don't know how use this function. can you help me please???
thx!