LuaAPI.wiki
changeset 45 07eb386ecca2
parent 44 bf53e635a2ac
child 46 6c818c9fc1d5
equal deleted inserted replaced
44:bf53e635a2ac 45:07eb386ecca2
    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> ===
    68 === <tt>onGearResurrect(gearUid)</tt> ===
    69 
    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.
    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(gearUid, heResurrectable , true).
    71 </blockquote>
    71 </blockquote>
    72 === <tt>onAmmoStoreInit()</tt> ===
    72 === <tt>onAmmoStoreInit()</tt> ===
    73 
    73 
    74 <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.
    75 </blockquote>
    75 </blockquote>