LuaAPI.wiki
changeset 535 5cb76f048bd9
parent 533 f33a741d9057
child 538 1ee51018a898
equal deleted inserted replaced
534:f50cf1771b7f 535:5cb76f048bd9
   240 This function is called when you release the attack key.
   240 This function is called when you release the attack key.
   241 
   241 
   242 === <tt>onDownUp()</tt> ===
   242 === <tt>onDownUp()</tt> ===
   243 This function is called when you release the down key.
   243 This function is called when you release the down key.
   244  
   244  
   245 === <tt>onHogAttack()</tt> ===
   245 === <tt>onHogAttack(ammoType)</tt> ===
   246 This function is called when you press the attack key.
   246 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.
   247 
   247 
   248 === <tt>onLeftUp()</tt> ===
   248 === <tt>onLeftUp()</tt> ===
   249 This function is called when you release the left key.
   249 This function is called when you release the left key.
   250 
   250 
   251 === <tt>onPreciseUp()</tt> ===
   251 === <tt>onPreciseUp()</tt> ===