# HG changeset patch # User almikes@aol.com # Date 1419163849 0 # Node ID 5cb76f048bd98743c65c09e254f52f40bde91d49 # Parent f50cf1771b7fede02eb9feed16d8eecd29ccf215 Update onHogAttack diff -r f50cf1771b7f -r 5cb76f048bd9 LuaAPI.wiki --- a/LuaAPI.wiki Sun Dec 21 04:46:37 2014 +0000 +++ b/LuaAPI.wiki Sun Dec 21 12:10:49 2014 +0000 @@ -242,8 +242,8 @@ === onDownUp() === This function is called when you release the down key. -=== onHogAttack() === -This function is called when you press the attack key. +=== onHogAttack(ammoType) === +This function is called when you press the attack key. Beginning with 0.9.21, the parameter `ammoType` is provided. It contains the ammo type of the weapon used for the attack. === onLeftUp() === This function is called when you release the left key.