173 SendStat(siGameResult, loc("Challenge completed!")) |
173 SendStat(siGameResult, loc("Challenge completed!")) |
174 SendStat(siPointType, loc("milliseconds")) |
174 SendStat(siPointType, loc("milliseconds")) |
175 local time = startTime - endTime |
175 local time = startTime - endTime |
176 SendStat(siPlayerKills, tostring(time), params.teamName) |
176 SendStat(siPlayerKills, tostring(time), params.teamName) |
177 SendStat(siCustomAchievement, string.format(loc("You have finished the challenge in %.3f s."), (time/1000))) |
177 SendStat(siCustomAchievement, string.format(loc("You have finished the challenge in %.3f s."), (time/1000))) |
178 TurnTimeLeft = 0 |
178 SetTurnTimeLeft(0) |
179 else |
179 else |
180 SendStat(siGameResult, loc("Challenge failed!")) |
180 SendStat(siGameResult, loc("Challenge failed!")) |
181 SendStat(siPointType, loc("crate(s)")) |
181 SendStat(siPointType, loc("crate(s)")) |
182 SendStat(siPlayerKills, tostring(cratesCollected), params.teamName) |
182 SendStat(siPlayerKills, tostring(cratesCollected), params.teamName) |
183 SendStat(siCustomAchievement, string.format(loc("You have collected %d out of %d crate(s)."), cratesCollected, #crates)) |
183 SendStat(siCustomAchievement, string.format(loc("You have collected %d out of %d crate(s)."), cratesCollected, #crates)) |