share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 10289 c3a77ff02a23
parent 8679 a8bdcf7bec20
child 10655 1c85a442bd56
equal deleted inserted replaced
10288:7bf02127262c 10289:c3a77ff02a23
   110 	-- A timeframe of 0 is replaced with the default time to show.
   110 	-- A timeframe of 0 is replaced with the default time to show.
   111 	ShowMission(loc("Bazooka Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amBazooka, 0)
   111 	ShowMission(loc("Bazooka Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amBazooka, 0)
   112 end
   112 end
   113 
   113 
   114 function onNewTurn()
   114 function onNewTurn()
   115 	ParseCommand("setweap " .. string.char(amBazooka))
   115 	SetWeapon(amBazooka)
   116 end
   116 end
   117 
   117 
   118 -- This function is called every game tick.
   118 -- This function is called every game tick.
   119 -- Note that there are 1000 ticks within one second.
   119 -- Note that there are 1000 ticks within one second.
   120 -- You shouldn't try to calculate too complicated
   120 -- You shouldn't try to calculate too complicated