LuaAPI.wiki
changeset 946 3ca13c637fd0
parent 942 cca9e43e9d72
child 947 155307e52864
--- a/LuaAPI.wiki	Tue Apr 04 14:53:35 2017 +0100
+++ b/LuaAPI.wiki	Tue Apr 04 16:09:00 2017 +0100
@@ -341,6 +341,11 @@
 === <tt>onUpUp()</tt> ===
 This function is called when you release the up key.
 
+=== <tt>onUsedAmmo(ammoType)</tt> (0.9.23) ===
+Called after a weapon has been used completely, with `ammoType` as the used ammo type.
+
+For example, it is called right after a bazooka is fired, when both shots of a shotgun have been fired. It is also called when using a multi-shot ammo has been aborted because this still uses up the ammo.
+
 === <tt>onHogHide(gearUid)</tt> (0.9.16) ===
 This function is called when a hedgehog with the gear ID `gearUid` is hidden (removed from the map).