LuaAPI.wiki
changeset 46 6c818c9fc1d5
parent 45 07eb386ecca2
child 47 adf440f87f1e
equal deleted inserted replaced
45:07eb386ecca2 46:6c818c9fc1d5
    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(gearUid, heResurrectable , true).
    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>
    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>