Jump to content

plane bug


Troll--dad

Recommended Posts

I try to spawn a plane (hydra) behind CJ and make the plane fly like this:

hydra------------CJ----------->

 

But it does something weird, it appears and without advancing it turns to the left (or right) and it became crazy, usually crashing to the ground, so, here is the code:

 

Load the models (#army and #hydra) and check if they are avaliable

.

.

.

04C4: store_coords_to 27@ 28@ 26@ from_actor $PLAYER_ACTOR with_offset 0.0 300.0 100.0 // spawn point

2@ = Actor.Angle($PLAYER_ACTOR)

.

.

.

0@ = Car.Create(#HYDRA, 27@, 28@, 26@)

0129: 3@ = create_actor_pedtype 32 model #ARMY in_car 0@ driverseat

Car.SetImmunities(0@, 1, 1, 1, 1, 1)

Car.SetSpeedInstantly(0@, 100.0)

0745: set_hydra 0@ thrust_to_horizontal

08E6: set_plane 0@ landing_gear 1

Car.Angle(0@) = 2@

5@ = Marker.CreateAboveCar(0@) // only for testing pruposes

Marker.SetColor(5@, 1) // only for testing pruposes

070F: plane 0@ fly_direction 2@ altitude_between 50.0 and 50.0

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.