Jump to content

helicopter follow player


Dragorad

Recommended Posts

Hi. Yesterday I ask the question about this coding:

 

:Label06ADF4

0108: destroy_object $5A8

03BC: $A34 = create_sphere -665.4 -1484.7 12.8 1.0

00A5: $A35 = create_car #SQUALO at -597.6 -1507.7 5.4

0175: set_car $A35 z_angle_to 250.0

0186: $A36 = create_marker_above_car $A35

00BC: text_highpriority "COK3_8" 10000 ms 1 ;; ~g~Go to the boatyard at the docks and steal the fastest boat.

 

...............................

 

:HUNTER

04C4: create_coordinate 13@ 14@ 15@ from_actor $PLAYER_ACTOR offset 0 100.0 50.0

00A5: $QQQ = create_car #HUNTER at 13@ 14@ 15@

 

:HUNTER_2

04C4: create_coordinate 13@ 14@ 15@ from_actor $PLAYER_ACTOR offset 0.0 40.0 20.9

04A2: heli $QQQ fly_to 13@ 14@ 15@ speed 100

0001: wait 0 ms

0002: jump ЈHUNTER_2

 

............................

 

:Label06AE4A

00D6: if 0

81FC: NOT player $PLAYER_CHAR near_car $A35 radius 120.0 120.0 0

004D: jump_if_false ЈLabel06AE9A

0001: wait 0 ms

00D6: if 0

0119: car $A35 wrecked

004D: jump_if_false ЈLabel06AE93

00BC: text_highpriority "COK3_7" 5000 ms 1 ;; ~r~You destroyed the boat!

0002: jump ЈLabel06C49D

 

...and somebody answered me to use Sanny Builder insted of Mission Builder so I decompile main.scm with sanny builder and input this labels in main.scm.txt:

 

:HUNTER

04C4: create_coordinate 13@ 14@ 15@ from_actor $PLAYER_ACTOR offset 0 100.0 50.0

00A5: $QQQ = create_car #HUNTER at 13@ 14@ 15@

 

:HUNTER_2

04C4: create_coordinate 13@ 14@ 15@ from_actor $PLAYER_ACTOR offset 0.0 40.0 20.9

04A2: heli $QQQ fly_to 13@ 14@ 15@ speed 100

0001: wait 0 ms

0002: jump ЈHUNTER_2

 

After compiling with sanny builder, the same problem-Hunter is following me but after the opcode 0002: jump ЈHUNTER_2, the mission have the bug (no actors, no checkpoints...) and it can not be passed. Is there opcode similar to 0002: jump ЈHUNTER_2 that can allow me to force heli to follow me without any mission bugs?

 

Link to comment
Share on other sites

Jump opcodes are to be used like this:

 

 

Jump @Specifiedlabel Jump = jump...duh?  @ = stands for at specifiedlabel = the label you want to jump to

 

 

So:

 

 

0002: jump ЈHUNTER_2

 

Would now be:

 

 

0002: jump @HUNTER_2

 

 

Dont forget, having two of the same labels in one script will cause a "redeclared" error

 

Also its the wrong place to create the topic, anything coding related to GTA III, VC or SA goes in the III Coding area

Edited by The_Sorrow
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.