Available since Version 1.27.
Checks if the given story mission is completed.
Syntax
IsLevelMissionCompleted( level, mission )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
- mission (integer): The mission to check.
- For Level 1, between 0 and 7 or the max
StoryMissionsset for the level by the Custom Stats Totals hack, if it is loaded. - For Levels 2-7, between 1 and 8 or the max
StoryMissionsset for the level by the Custom Stats Totals hack, if it is loaded.
- For Level 1, between 0 and 7 or the max
Return Values
- (boolean | nil): If the player has completed the mission or
nilif unavailable.
Examples
local FatAndFuriousCompleted = IsLevelMissionCompleted(1, 7)
if FatAndFuriousCompleted then
-- Do something if Homer has thwarted Burns' plans
end