# HG changeset patch # User Wuzzy # Date 1491319165 -3600 # Node ID 155307e52864e1f82f2f27325ee8fcadadd11178 # Parent 3ca13c637fd0255843a29bbd4a795163246ead13 LuaAPI: fix onUsedAmmo explanation diff -r 3ca13c637fd0 -r 155307e52864 LuaAPI.wiki --- a/LuaAPI.wiki Tue Apr 04 16:09:00 2017 +0100 +++ b/LuaAPI.wiki Tue Apr 04 16:19:25 2017 +0100 @@ -344,7 +344,7 @@ === onUsedAmmo(ammoType) (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. +For example, it is called right after a bazooka is fired, when both shots of a shotgun have been fired, when extra time is used, or when all 4 shots of a portable portal device have been fired. It is also called when using a multi-shot ammo has been aborted by changing the weapon selection mid-way, because this still uses up the ammo. === onHogHide(gearUid) (0.9.16) === This function is called when a hedgehog with the gear ID `gearUid` is hidden (removed from the map).