LuaGameplay: Delay of 9999 draft
authorWuzzy
Sun, 26 May 2019 13:38:05 +0100
changeset 1907 806491e9ef60
parent 1906 7891546b4ff8
child 1908 d141b806356e
LuaGameplay: Delay of 9999
LuaGameplay.wiki
--- a/LuaGameplay.wiki	Fri May 24 20:52:38 2019 +0100
+++ b/LuaGameplay.wiki	Sun May 26 13:38:05 2019 +0100
@@ -144,7 +144,7 @@
 <code language="lua">count, prob, delay, numberInCrate = GetAmmo(amGrenade) -- Get ammo settings of amGrenade</code>
 
 === <tt>!SetAmmoDelay(ammoType, delay)</tt> ===
-Changes the delay of a specified [AmmoTypes Ammo Type].
+Changes the delay of a specified [AmmoTypes Ammo Type]. If `delay` is set to `9999`, the ammo type is disabled indefinitely.
 
 === <tt>!SetAmmoTexts(ammoType, name, caption, description [, showExtra])</tt> (0.9.23) ===
 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`.