LuaAPI: add onGearResurrect param
authorWuzzy
Tue, 04 Dec 2018 00:01:16 +0000
changeset 1642 e8da1dd5c93c
parent 1641 e3ba8cad19d5
child 1643 2aa0735e0c32
LuaAPI: add onGearResurrect param
LuaAPI.wiki
--- 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.