diff -r 4e5280a9e782 -r 208359558642 share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua --- a/share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua Wed Dec 19 20:34:07 2018 +0100 +++ b/share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua Wed Dec 19 20:56:10 2018 +0100 @@ -53,7 +53,7 @@ local delayedTargetTargetX, delayedTargetY -- Team name of the player's team -local playerTeamName = loc("Sniperz") +local playerTeamName -- This is a custom function to make it easier to -- spawn more targets with just one line of code @@ -133,9 +133,10 @@ HealthDecrease = 0 -- Create the player team - AddTeam(playerTeamName, -1, "Simple", "Island", "Default", "cm_crosshair") + AddMissionTeam(-1) + playerTeamName = GetTeamName(0) -- And add a hog to it - player = AddHog(loc("Hunter"), 0, 1, "Sniper") + player = AddMissionHog(1) SetGearPosition(player, 602, 1465) end