LuaAPI.wiki
changeset 1006 160112dc2fcf
parent 1004 94d046b03855
child 1029 958b671fe4d0
equal deleted inserted replaced
1005:02833f7365e4 1006:160112dc2fcf
   940 
   940 
   941 ==== <tt>!SetAmmoDelay(ammoType, delay)</tt> ====
   941 ==== <tt>!SetAmmoDelay(ammoType, delay)</tt> ====
   942 Changes the delay of a specified [AmmoTypes Ammo Type].
   942 Changes the delay of a specified [AmmoTypes Ammo Type].
   943 
   943 
   944 ==== <tt>!SetAmmoTexts(ammoType, name, caption, description)</tt> (0.9.23) ====
   944 ==== <tt>!SetAmmoTexts(ammoType, name, caption, description)</tt> (0.9.23) ====
   945 Allows you to overwrite the displayed name and tooltip descriptions of a given ammo type.
   945 Allows you to overwrite the displayed name and tooltip descriptions of a given ammo type. This function must only be called either inside the `onGameStart` callback function, or after the engine has called `onGameStart`.
   946 
   946 
   947  * `ammoType`: The ammo type to set the text for
   947  * `ammoType`: The ammo type to set the text for
   948  * `name`: Name of the ammo type (e.g. “Grenade” for `amGrenade`), affects both name in ammo menu and in the “ticker” message on the screen top.
   948  * `name`: Name of the ammo type (e.g. “Grenade” for `amGrenade`), affects both name in ammo menu and in the “ticker” message on the screen top.
   949  * `caption`: The second line in the ammo menu (below the title). E.g. “Timed grenade” for `amGrenade`.
   949  * `caption`: The second line in the ammo menu (below the title). E.g. “Timed grenade” for `amGrenade`.
   950  * `description`: Description text in ammo menu, below the caption.
   950  * `description`: Description text in ammo menu, below the caption.