# HG changeset patch
# User Wuzzy
# Date 1480266645 0
# Node ID cca9e43e9d72ebc748f7dfa64897186d4cc9e0f5
# Parent 6100c2308a8271c944915cd2583eb5d668029d7d
LuaAPI: Clarify description of onGearResurrect
diff -r 6100c2308a82 -r cca9e43e9d72 LuaAPI.wiki
--- a/LuaAPI.wiki Sun Nov 27 13:26:45 2016 +0000
+++ b/LuaAPI.wiki Sun Nov 27 17:10:45 2016 +0000
@@ -244,7 +244,7 @@
end
end
=== onGearResurrect(gearUid) ===
-This function is called when a gear is resurrected. CPU Hogs will resurrect if the !GameFlag `gfAISurvival` is enabled. Alternatively, specific gears can have `heResurrectable` set to true via `SetEffect`.
+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.
=== onAmmoStoreInit() ===
This function is called when the game is initialized to request the available ammo and ammo probabilities. Use `SetAmmo` here.