You are not logged in.
Pages: 1
Hello friends. Why the game crashes? it compiles, but the mission does not start. Could you help me?
this is the start trigger
{$CLEO .cs}
0000: NOP
while true
0001: wait 0 ms
if and
0038: $ONMISSION == 0 // integer values
player.defined(0)
0002: jump @LABEL
:LABEL
02A7: 1@ = create_icon_marker_and_sphere 21 at 241.1554 -1283.4547 10.9015
if
0100: actor $PLAYER_ACTOR near_point_in_car 241.1554 -1283.4547 10.9015 radius 3.0 3.0 3.0 sphere 0
004D: jump_if_false @LABEL
0164: disable_marker 1@
0038: $ONMISSION = 1
0417: start_mission "missions\Mission"
004E: end_thread
And this is the mission
{$CLEO .cm}
0000: NOP
:MISSION
03A4: name_thread 'Mission'
0038: $ONMISSION == 1
0001: wait 0 ms
0050: gosub @MissionStart
if
0112: wasted_or_busted
then
0050: gosub @MissionFailed
end
0050: gosub @MissionCleanup
004E: end_thread
:MissionStart
0001: wait 0 ms
:LOAD
0001: wait 0 ms
0247: request_model #PYTHON
0002: jump @AVAILABLE
:AVAILABLE
if
0248: model #PYTHON available
004D: jump_if_false @LOAD
0002: jump @GUN
:GUN
032B: 1@ = create_weapon_pickup 275 3 ammo 30 at 228.678 -1297.2859 12.0712
if
0214: pickup 1@ picked_up
004D: jump_if_false @MissionStart
return
:MissionFailed
return
:MissionCleanup
0038: $ONMISSION == 0
00D8: mission_cleanup
return
Pages: 1