LuaAPI.wiki
changeset 947 155307e52864
parent 946 3ca13c637fd0
child 993 dc572809f874
equal deleted inserted replaced
946:3ca13c637fd0 947:155307e52864
   342 This function is called when you release the up key.
   342 This function is called when you release the up key.
   343 
   343 
   344 === <tt>onUsedAmmo(ammoType)</tt> (0.9.23) ===
   344 === <tt>onUsedAmmo(ammoType)</tt> (0.9.23) ===
   345 Called after a weapon has been used completely, with `ammoType` as the used ammo type.
   345 Called after a weapon has been used completely, with `ammoType` as the used ammo type.
   346 
   346 
   347 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.
   347 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.
   348 
   348 
   349 === <tt>onHogHide(gearUid)</tt> (0.9.16) ===
   349 === <tt>onHogHide(gearUid)</tt> (0.9.16) ===
   350 This function is called when a hedgehog with the gear ID `gearUid` is hidden (removed from the map).
   350 This function is called when a hedgehog with the gear ID `gearUid` is hidden (removed from the map).
   351 
   351 
   352 === <tt>onHogRestore(gearUid)</tt> (0.9.16) ===
   352 === <tt>onHogRestore(gearUid)</tt> (0.9.16) ===