Lua in SpringRTS/Callins/UnitIdle()

Return values
unitID, unitDefID, teamID