Available since Version 1.27.
Checks if the given bonus mission is completed.
Syntax
IsLevelBonusMissionCompleted( 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
- (boolean | nil): If the player has completed the level's bonus mission or
nilif unavailable.
Examples
local BonusMissionCompleted = IsLevelBonusMissionCompleted(1)
if BonusMissionCompleted then
-- Do something if Homer has helped Cletus
end