# HG changeset patch
# User Wuzzy
# Date 1543881676 0
# Node ID e8da1dd5c93c862e14f77a2fff6362069a2eb61b
# Parent e3ba8cad19d56eff408ad59f0e01378626445744
LuaAPI: add onGearResurrect param
diff -r e3ba8cad19d5 -r e8da1dd5c93c 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
-=== onGearResurrect(gearUid) ===
+=== onGearResurrect(gearUid, spawnedVGear) ===
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.
+
=== onAmmoStoreInit() ===
This function is called when the game is initialized to request the available ammo and ammo probabilities. Use `SetAmmo` here.