Jump to content

Script Problem


Troll--dad

Recommended Posts

SOLVED

 

I'm making a mod that allows you to use RCTIGER gun as cannon, firing straight, I came to this, but it crashes

I'm really bad at using throwing object codes, I know it's easier but i always miss, that's the reason I used this method.

 

Here is a stripped part of my mod:

 

 

:ASSAULT_3190001: wait 0 ms 0407: store_coords_to 20@ 21@ 22@ from_car 7@ with_offset 2.0 0.0 0.0 0407: store_coords_to 15@ 16@ 17@ from_car 7@ with_offset 0.0 100.0 0.00174: 23@ = car 7@ Z_angle 00D6: if 0AB0:    key_pressed 71004D: jump_if_false @ASSAULT_6190001: wait 0 ms 00A5: 0@ = create_car #RCTIGER at 20@ 21@ 22@ 0129: 30@ = create_actor_pedtype 23 model #ARMY in_car 0@ driverseat0337: set_actor 30@ visibility 004BA: set_car 0@ speed_to 20 0175: set_car 0@ Z_angle_to 23@ 0338: set_car 0@ visibility 0 :ASSAULT_4520001: wait 0 ms 0407: store_coords_to 24@ 25@ 26@ from_car 0@ with_offset 0.0 0.0 0.0 095C: create_smoke_at 24@ 25@ 26@ velocity 0.0 0.0 5.0 RGBA 0.0 0.0 0.0 1.0 size 5.5 last_factor 0.02 02E3: 27@ = car 0@ speed 00D6: if 0021:   5.0 > 27@ 004D: jump_if_false @ASSAULT_452 0407: store_coords_to 24@ 25@ 26@ from_car 0@ with_offset 0.0 0.0 0.0 020C: create_explosion_with_radius 5 at 24@ 25@ 26@ 0002: jump @ASSAULT_619 

 

 

EDIT: All labels are defined in parts of the script not shown here

Edited by Troll--dad
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.