LuaAPI.wiki
changeset 148 f343b50d5619
parent 147 379d7931ffc7
child 149 baceeb7b94f9
equal deleted inserted replaced
147:379d7931ffc7 148:f343b50d5619
   100 === <tt>onAmmoStoreInit()</tt> ===
   100 === <tt>onAmmoStoreInit()</tt> ===
   101 
   101 
   102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
   102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
   103 </blockquote>
   103 </blockquote>
   104 
   104 
   105 === <tt>onScreenResize()</tt> ===
   105 === <tt>onScreenResize() (0.9.16) </tt> ===
   106 
   106 
   107 <blockquote>This function is called when you resize the screen. Useful place to put a redraw function for any vgtHealthTags you're using.
   107 <blockquote>This function is called when you resize the screen. Useful place to put a redraw function for any vgtHealthTags you're using.
   108 </blockquote>
   108 </blockquote>
   109 
   109 
   110 === <tt>onAttack()</tt> ===
   110 === <tt>onAttack()</tt> ===
   213 
   213 
   214 <blockquote>returns one of [GearTypes Gear Types] for the specified gear
   214 <blockquote>returns one of [GearTypes Gear Types] for the specified gear
   215 </blockquote>
   215 </blockquote>
   216 === <tt>!GetGearPosition(gearUid)</tt> ===
   216 === <tt>!GetGearPosition(gearUid)</tt> ===
   217 
   217 
   218 <blockquote>returns tuple of x,y coordinates for the specified gear
   218 <blockquote>returns x,y coordinates for the specified gear
       
   219 </blockquote>
       
   220 === <tt>!GetGearRadius(gearUid)</tt> (0.9.15) ===
       
   221 
       
   222 <blockquote>Returns radius for the specified gear
   219 </blockquote>
   223 </blockquote>
   220 === <tt>!GetGearVelocity(gearUid)</tt> (0.9.15) ===
   224 === <tt>!GetGearVelocity(gearUid)</tt> (0.9.15) ===
   221 
   225 
   222 <blockquote>returns tuple of dx,dy values for the specified gear
   226 <blockquote>returns tuple of dx,dy values for the specified gear
   223 </blockquote>
   227 </blockquote>