# HG changeset patch # User RedGrinner # Date 1291644158 0 # Node ID bf53e635a2ac58220e0290c603ee7c404016955e # Parent c07e89eded714372dd0ee1dfd891410558201bad Edited wiki page LuaAPI through web user interface. diff -r c07e89eded71 -r bf53e635a2ac LuaAPI.wiki --- a/LuaAPI.wiki Sun Dec 05 03:40:20 2010 +0000 +++ b/LuaAPI.wiki Mon Dec 06 14:02:38 2010 +0000 @@ -65,6 +65,10 @@
This function is called when a new gear is deleted. Useful in combination with !GetGearType(gearUid).
+=== onGearResurrect(gearUid) === + +
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. +
=== onAmmoStoreInit() ===
This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here.