Available since Version 1.27.
Gets the number of wasps that the player has destroyed in the given level.
Syntax
GetLevelNumWaspsDestroyed( level )Arguments
- level (integer): The level to check.
- Between 1 and 7 or the max
Levelsset by the Custom Stats Totals hack, if it is loaded.
- Between 1 and 7 or the max
Return Values
- (integer | nil): The number of wasps the player has destroyed or
nilif unavailable.
Examples
local NumberOfWaspsHomerHasDestroyed = GetLEvelNumWaspsDestroyed(1)
if NumberOfWaspsHomerHasDestroyed > 15 then
-- Do something if Homer has way too much hatred of giant alien wasps equipped with cameras
-- ...
-- Actually, that seems fair
end