# HG changeset patch # User Wuzzy # Date 1493743008 -3600 # Node ID 160112dc2fcfe83332e239ee123dc1d303c1de2e # Parent 02833f7365e487276ef1fa1cff9a24d3fbfe2656 LuaAPI: Clarify SetAmmoTexts usage: Must not be called before onGameStart was fired diff -r 02833f7365e4 -r 160112dc2fcf LuaAPI.wiki --- a/LuaAPI.wiki Thu Apr 27 23:39:49 2017 +0100 +++ b/LuaAPI.wiki Tue May 02 17:36:48 2017 +0100 @@ -942,7 +942,7 @@ Changes the delay of a specified [AmmoTypes Ammo Type]. ==== !SetAmmoTexts(ammoType, name, caption, description) (0.9.23) ==== -Allows you to overwrite the displayed name and tooltip descriptions of a given ammo type. +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`. * `ammoType`: The ammo type to set the text for * `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.