LuaAPI.wiki
changeset 173 ef246592a16e
parent 172 67ce8ba1c934
child 174 701ab6df45b5
equal deleted inserted replaced
172:67ce8ba1c934 173:ef246592a16e
   145 === <tt>onDown()</tt> ===
   145 === <tt>onDown()</tt> ===
   146 
   146 
   147 <blockquote>This function is called when you press the down key.
   147 <blockquote>This function is called when you press the down key.
   148 </blockquote>
   148 </blockquote>
   149 
   149 
       
   150 === <tt>onAttackUp()</tt> (0.9.17) ===
       
   151 === <tt>onDownUp()</tt> (0.9.17) ===
       
   152 === <tt>onHogAttack()</tt> (0.9.17) ===
       
   153 === <tt>onLeftUp()</tt> (0.9.17) ===
       
   154 === <tt>onPreciseUp()</tt> (0.9.17) ===
       
   155 === <tt>onRightUp()</tt> (0.9.17) ===
       
   156 === <tt>onSetWeapon()</tt> (0.9.17) ===
       
   157 === <tt>onSlot()</tt> (0.9.17) ===
       
   158 === <tt>onSwitch()/tt> (0.9.17) ===
       
   159 === <tt>onTaunt()/tt> (0.9.17) ===
       
   160 === <tt>onTimer()/tt> (0.9.17) ===
       
   161 === <tt>onUpUp()/tt> (0.9.17) ===
       
   162 
       
   163 
   150 == Functions for creating gears ==
   164 == Functions for creating gears ==
   151 
   165 
   152 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===
   166 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===
   153 
   167 
   154 <blockquote>This creates a new gear at position x,y (measured from top left) of kind gearType (see [GearTypes Gear Types]). The initial velocities are dx and dy. All arguments are numbers. The function returns the uid of the gear created.
   168 <blockquote>This creates a new gear at position x,y (measured from top left) of kind gearType (see [GearTypes Gear Types]). The initial velocities are dx and dy. All arguments are numbers. The function returns the uid of the gear created.