This command will end your current mission. If all objectives are completed, you will win the mission, otherwise you will fail. Complete all mission objectives with the ForceCompleteObjective command before using this to win your mission.
The syntax for the endbattle command is as follows:
endbattle [0 / 1]
This command has the following arguments:
|0 / 1||Specify '1' here (without quotes) to end the battle with a win, if all objectives are completed. Specify '0' (without quotes) to end, and not win the battle.|
Find below working examples of the endbattle command.
This command will end your current mission, and if all objectives are completed, you will win. If all objectives are not completed, you will lose.