Checks if the player started a mission in a car.
Scope
This command should be called between calls to SelectMission and CloseMission in a mission's initialisation script.
Syntax
IfStartedInCar()Game.IfStartedInCar()Examples
IfStartedInCar()
{
// Add an extra stage when the player started the mission in a car
AddStage();
// ...
CloseStage();
}Game.IfStartedInCar()
-- Add an extra stage when the player started the mission in a car
Game.AddStage()
-- ...
Game.CloseStage()
Game.EndIf()Notes
Due to the nature of how console scripts work in the game, all conditional commands are evaluated at the time the script is executed. This unfortunately limits the utility of many of these types of commands, but we believe they still have some use cases even with this limitation.