Difference between revisions of "0A94"

From GTAMods Wiki
Jump to navigation Jump to search
(Added more correctly usage of this opcode on Sanny Builder.)
 
Line 2: Line 2:
 
| games      = {{Icon|SA}}
 
| games      = {{Icon|SA}}
 
| command    = LOAD_AND_LAUNCH_CUSTOM_MISSION
 
| command    = LOAD_AND_LAUNCH_CUSTOM_MISSION
| description = Begins a CLEO mission from a specified file. The file extension is not needed to specify, the opcode will search for the file with the extension .cm (Custom Mission). The mission starts from the file CLEO\missions\CustomMission1.cm in this example.
+
| description = Begins a CLEO mission from a specified file
| syntax1    = 0A94: start_custom_mission "missions\CustomMission1"
+
| syntax1    = 0A94: start_custom_mission [''str'']
| p1t        = [''string'']
+
| p1t        = [''str'']
 
| p1d        = Custom mission file path.
 
| p1d        = Custom mission file path.
 
}}
 
}}
 +
 +
The file extension is not needed to specify, the opcode will search for the file with the extension .cm (Custom Mission).
 +
 +
== Example ==
 +
{{Pre|class=sb-code|1=
 +
0A94: start_custom_mission <span class="s1">"missions\CustomMission1"</span>
 +
}}
 +
 +
The mission starts from the file ''CLEO\missions\CustomMission1.cm'' in this example.

Latest revision as of 13:22, 10 May 2021

San Andreas LOAD_AND_LAUNCH_CUSTOM_MISSION


Description
Begins a CLEO mission from a specified file
Syntax
0A94: start_custom_mission [str]
Parameter
[str]
Custom mission file path.

The file extension is not needed to specify, the opcode will search for the file with the extension .cm (Custom Mission).

Example

0A94: start_custom_mission "missions\CustomMission1"

The mission starts from the file CLEO\missions\CustomMission1.cm in this example.