LuaAPI.wiki
changeset 203 08cc35ba4d34
parent 202 47363108b6b6
child 209 26805ae2a319
equal deleted inserted replaced
202:47363108b6b6 203:08cc35ba4d34
   100 === <tt>onAmmoStoreInit()</tt> ===
   100 === <tt>onAmmoStoreInit()</tt> ===
   101 
   101 
   102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
   102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
   103 </blockquote>
   103 </blockquote>
   104 
   104 
   105 === <tt>onNewAmmoStore(team index [or clan], hog index)</tt> ===
   105 === <tt>onNewAmmoStore(team/clan index, hog index)</tt> ===
   106 
   106 
   107 <blockquote>This function is identical to onAmmoStoreInit in function, but is called once per ammo store.  This allows different ammo sets for each clan, team or hedgehog depending on the mode.</blockquote>
   107 <blockquote>This function is identical to onAmmoStoreInit in function, but is called once per ammo store.  This allows different ammo sets for each clan, team or hedgehog depending on the mode.</blockquote>
   108 If gfSharedAmmo is set, the parameters passed are the clan index, and -1, and the function will be called once for each clan.
   108 If gfSharedAmmo is set, the parameters passed are the clan index, and -1, and the function will be called once for each clan.
   109 If gfPerHogAmmo is set, the parameters passed are the team index and the hog index in that team, and the function will be called once for each hedgehog.
   109 If gfPerHogAmmo is set, the parameters passed are the team index and the hog index in that team, and the function will be called once for each hedgehog.
   110 If neither is set, the parameters passed are the team index and -1, and the function will be called once for each team.
   110 If neither is set, the parameters passed are the team index and -1, and the function will be called once for each team.