LuaAPI.wiki
changeset 919 47ff2b524869
parent 918 87e1d0a11e99
child 920 657f3042209d
equal deleted inserted replaced
918:87e1d0a11e99 919:47ff2b524869
   947 Changes the delay of a specified [AmmoTypes Ammo Type].
   947 Changes the delay of a specified [AmmoTypes Ammo Type].
   948 
   948 
   949 ==== <tt>!SetAmmoTexts(ammoType, name, caption, description)</tt> (0.9.23) ====
   949 ==== <tt>!SetAmmoTexts(ammoType, name, caption, description)</tt> (0.9.23) ====
   950 Allows you to overwrite the displayed name and tooltip descriptions of a given ammo type.
   950 Allows you to overwrite the displayed name and tooltip descriptions of a given ammo type.
   951 
   951 
   952 * `ammoType`: The ammo type to set the text for
   952  * `ammoType`: The ammo type to set the text for
   953 * `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.
   953  * `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.
   954 * `caption`: The second line in the ammo menu (below the title). E.g. “Timed grenade” for `amGrenade`.
   954  * `caption`: The second line in the ammo menu (below the title). E.g. “Timed grenade” for `amGrenade`.
   955 * `description`: Description text in ammo menu, below the caption.
   955  * `description`: Description text in ammo menu, below the caption.
   956 
   956 
   957 `title`, `caption`, `description` can be `nil`, in which case they will be reverted to the engine default value. This function returns `nil`.
   957 `title`, `caption`, `description` can be `nil`, in which case they will be reverted to the engine default value. This function returns `nil`.
   958 
   958 
   959 Example:
   959 Example:
   960 <code language="lua">
   960 <code language="lua">