#1 12-04-2018 04:14

NarUllaquua
Registered: 10-04-2018
Posts: 1

Help with Cleo mission VC

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

Offline

#2 12-04-2018 19:57

DK22Pac
From: Ukraine
Registered: 26-03-2010
Posts: 447
Website

Re: Help with Cleo mission VC

There are no "CLEO missions" (associated with .cm files) in CLEO for III/VC.


Plugin-SDK https://github.com/DK22Pac/plugin-sdk
Discord-сервер по plugin-sdk и программированию в GTA
RU https://discord.gg/QEesDGb
ENG https://discord.gg/zaVqFQv

Offline

Board footer

Powered by FluxBB