--- a/LuaAPI.wiki Mon Dec 03 23:59:08 2018 +0000
+++ b/LuaAPI.wiki Tue Dec 04 00:01:16 2018 +0000
@@ -261,9 +261,11 @@
AddCaption(GetHogName(gear) .. ' took ' .. damage .. ' points of damage')
end
end</code>
-=== <tt>onGearResurrect(gearUid) </tt> ===
+=== <tt>onGearResurrect(gearUid, spawnedVGear) </tt> ===
This function is called when a gear is resurrected due to the hog effect `heResurrectable` being set (see `SetEffect`) and/or being an AI hog when the game modifier “AI Survival” (`gfAISurvival`) is active. It is *not* called when a hog was resurrected by the resurrector tool you can use in the game.
+`spawnedVGear` is a visual gear handle of the “resurrection effect”. You can use this handle to modify or delete the resurrection animation.
+
=== <tt>onAmmoStoreInit()</tt> ===
This function is called when the game is initialized to request the available ammo and ammo probabilities. Use `SetAmmo` here.