equal
deleted
inserted
replaced
105 -- A timeframe of 0 is replaced with the default time to show. |
105 -- A timeframe of 0 is replaced with the default time to show. |
106 ShowMission(loc("Grenade Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amGrenade, 0) |
106 ShowMission(loc("Grenade Training"), loc("Aiming Practice"), loc("Eliminate all targets before your time runs out.|You have unlimited ammo for this mission."), -amGrenade, 0) |
107 end |
107 end |
108 |
108 |
109 function onNewTurn() |
109 function onNewTurn() |
110 ParseCommand("setweap " .. string.char(amGrenade)) |
110 SetWeapon(amGrenade) |
111 end |
111 end |
112 |
112 |
113 -- This function is called every game tick. |
113 -- This function is called every game tick. |
114 -- Note that there are 1000 ticks within one second. |
114 -- Note that there are 1000 ticks within one second. |
115 -- You shouldn't try to calculate too complicated |
115 -- You shouldn't try to calculate too complicated |