LuaAPI.wiki
changeset 1428 c3f768cfe463
parent 1427 7325e47d2e2f
child 1443 d25ab95f2311
equal deleted inserted replaced
1427:7325e47d2e2f 1428:c3f768cfe463
  1088 
  1088 
  1089 Example:
  1089 Example:
  1090 
  1090 
  1091 <code language="lua">count, prob, delay, numberInCrate = GetAmmo(amGrenade) -- Get ammo settings of amGrenade</code>
  1091 <code language="lua">count, prob, delay, numberInCrate = GetAmmo(amGrenade) -- Get ammo settings of amGrenade</code>
  1092 
  1092 
  1093 Hint: It is recommended to always enable skip in missions. Only in exceptional circumstances you should choose to not enable skip.
       
  1094 
       
  1095 ==== <tt>!SetAmmoDelay(ammoType, delay)</tt> ====
  1093 ==== <tt>!SetAmmoDelay(ammoType, delay)</tt> ====
  1096 Changes the delay of a specified [AmmoTypes Ammo Type].
  1094 Changes the delay of a specified [AmmoTypes Ammo Type].
  1097 
  1095 
  1098 ==== <tt>!SetAmmoTexts(ammoType, name, caption, description)</tt> (0.9.23) ====
  1096 ==== <tt>!SetAmmoTexts(ammoType, name, caption, description)</tt> (0.9.23) ====
  1099 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`.
  1097 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`.