Code: Select all
function widget:GameID(id)
Spring.Echo("This is game ID: " .. id)
end

Moderator: Moderators
Code: Select all
function widget:GameID(id)
Spring.Echo("This is game ID: " .. id)
end
Its calling now (game action), not like before with old Game.gameID where (yes) it was needed to wait till first frames of game.Licho wrote:game id is not set at the start you must wait a bit until frame 1 or so.