LuaGameplay: Mention special case of delay >= 10000
authorWuzzy
Mon, 16 Sep 2019 16:49:13 +0100
changeset 1974 3a573bba359e
parent 1973 05be23a15de9
child 1975 05c417d4d891
LuaGameplay: Mention special case of delay >= 10000
LuaGameplay.wiki
--- a/LuaGameplay.wiki	Sun Sep 08 22:11:12 2019 +0100
+++ b/LuaGameplay.wiki	Mon Sep 16 16:49:13 2019 +0100
@@ -139,6 +139,8 @@
 
 This function returns four numbers, in this order: initial ammo count, probability, delay and number in crate. These values correspond to the parameters 2-5 provided in `SetAmmo` and have the same meaning.
 
+The `delay` has a special case. If `delay` is 10000 or greater, then this means you're in the hedgehog placement phase. To get the “true” delay (after the placement phase is over), you must subtract 10000 from this value.
+
 Example:
 
 <code language="lua">count, prob, delay, numberInCrate = GetAmmo(amGrenade) -- Get ammo settings of amGrenade</code>