LuaAPI.wiki
changeset 44 bf53e635a2ac
parent 43 c07e89eded71
child 45 07eb386ecca2
equal deleted inserted replaced
43:c07e89eded71 44:bf53e635a2ac
    63 === <tt>onGearDelete(gearUid)</tt> ===
    63 === <tt>onGearDelete(gearUid)</tt> ===
    64 
    64 
    65 <blockquote>This function is called when a new gear is deleted. Useful in
    65 <blockquote>This function is called when a new gear is deleted. Useful in
    66 combination with <tt>!GetGearType(gearUid)</tt>.
    66 combination with <tt>!GetGearType(gearUid)</tt>.
    67 </blockquote>
    67 </blockquote>
       
    68 === <tt>onGearResurrect(gearUid)</tt> ===
       
    69 
       
    70 <blockquote>This function is called when a gear is resurrected. CPU Hogs will resurrect if gfAISurvival is included in GameFlags. Alternatively, specific gears can have heResurrectable set to true via SetEffect.
       
    71 </blockquote>
    68 === <tt>onAmmoStoreInit()</tt> ===
    72 === <tt>onAmmoStoreInit()</tt> ===
    69 
    73 
    70 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
    74 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.
    71 </blockquote>
    75 </blockquote>
    72 == Functions for creating gears ==
    76 == Functions for creating gears ==