Jump to content

Help For Car Create and Car Drive To


Michael.Knight1

Recommended Posts

Michael.Knight1

I Would You Like Haw To Create :

set_car_model #bandito next_variation

set_car_model #bandito next_variation

Car.DriveTo($KITT, 1@, 2@, 3@)

in A Start With My Script

 
G1T
Link to comment
Share on other sites

 

I also don't know what he is trying to ask us.

 

G-Modifications

Me neither, now that I look back on it. Show us your code if you can speak that language better!

 

Or you could attempt to clearly state your intentions again. Otherwise, we won't understand you. smile.gif

23088_s.gif

Link to comment
Share on other sites

  • 3 weeks later...
Michael.Knight1

I Went Haw To Creatre My Start OF The Script With A Actor Drive in The Car

Thanks biggrin.gif

G1T
Link to comment
Share on other sites

Okay,

 

Start the script:

 

 

{$CLEO}0000:

 

 

Then add labels:

 

 

1:2:3:

 

 

Firstly, using the first label, we load the models:

 

 

:10247: load_model #BANDITO // Loads the model "Bandito" 0247: load_model #WBDYG2 // Random Actor, this actor will be the Bandito driver038B: load_requested_models 

 

 

Then we add opcodes to the second label, Here we create the car and insert an actor into it:

 

 

2:00A5: $Bandito = create_car #BANDITO at 0.0 0.0 0.0 // Create the car0129: $Banditodriver = create_actor_pedtype 23 model #WBDYG2 in_car $Bandito driverseat // Inserts the actor into the car's driverseat

 

 

Remember to replace

0.0 0.0 0.0

in the 00A5 opcode with the location coord's of where you would like the car to spawn.

 

Lastly, using the third label, we make the ACTOR drive the car to the desired location:

NOTE: It is possible to make the CAR drive itself to a location, meaning you don't need an actor in the car for it to move, but on this occasion I chose the ACTOR.

 

 

:305D1: AS_actor $Banditodriver drive_car $Bandito to 152@ 153@ 154@ speed 15.0 0 model #NULL 0 end_thread

 

 

You will need to collect the location's coord's and insert them into the coord section of the 05D1 opcode, replacing

152@ 153@ 154@

 

Link to comment
Share on other sites

Michael.Knight1

Thanks The_Sorrow

And Pleasse I Went Player Driving in The Car

And With Set Camera Position

Pleasse

G1T
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.