LuaAPI.wiki
changeset 64 a651a8ab85d5
parent 63 24004a9003ec
child 65 efa379b5510e
equal deleted inserted replaced
63:24004a9003ec 64:a651a8ab85d5
    50 
    50 
    51 <blockquote>This function is called when the first round starts.
    51 <blockquote>This function is called when the first round starts.
    52 </blockquote>
    52 </blockquote>
    53 Can be used to show the mission and for more setup, for example initial target spawning.
    53 Can be used to show the mission and for more setup, for example initial target spawning.
    54 
    54 
       
    55 === <tt>onGameTick()</tt> ===
       
    56 
       
    57 <blockquote>This function is called on every game tick, i.e. 1000 times a second.
       
    58 </blockquote>
       
    59 
    55 === <tt>onNewTurn()</tt> ===
    60 === <tt>onNewTurn()</tt> ===
    56 
    61 
    57 <blockquote>This function calls at the start of every turn.
    62 <blockquote>This function calls at the start of every turn.
    58 </blockquote>
       
    59 
       
    60 === <tt>onGameTick()</tt> ===
       
    61 
       
    62 <blockquote>This function is called on every game tick, i.e. 1000 times a second.
       
    63 </blockquote>
    63 </blockquote>
    64 === <tt>onGearAdd(gearUid)</tt> ===
    64 === <tt>onGearAdd(gearUid)</tt> ===
    65 
    65 
    66 <blockquote>This function is called when a new gear is added. Useful in
    66 <blockquote>This function is called when a new gear is added. Useful in
    67 combination with <tt>!GetGearType(gearUid)</tt>.
    67 combination with <tt>!GetGearType(gearUid)</tt>.