Jump to content

Make an actor as if it is in your gang


Recommended Posts

Peppo_o'Paccio

I don't script from a lot of time, but now I wanted to create CLEO mods again. Here is my question: how can you make a defined actor join your gang, like if you recruited him? For example, I use this (unfinished) script:

 

{$CLEO .cs}:Police03A4: name_thread 'POL':Police_10001: wait 0 msif0256:   player $PLAYER_CHAR definedjf @Police_1if810F:   not player $PLAYER_CHAR wanted_level > 0 jf @Police_1 if and0AB0:  key_pressed 320AB0:  key_pressed 8080DF:   not actor $PLAYER_ACTOR drivingjf @Police_10247: load_model #LAPD10247: load_model #COPCARLA0247: load_model #CELLPHONEif and0248:   model #LAPD1 available0248:   model #COPCARLA available0248:   model #CELLPHONE availablejf @Police_10729: AS_actor $PLAYER_ACTOR hold_cellphone 10001: wait 4000 ms0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.004C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 200.0 0.0 0.002C1: store_to 6@ 7@ 8@ car_path_coords_closest_to 3@ 4@ 5@00A5: 9@ = create_car #COPCARLA at 6@ 7@ 8@0129: 10@ = create_actor_pedtype 8 model #LAPD1 in_car 9@ driverseat01C8: 11@ = create_actor_pedtype 8 model #LAPD1 in_car 9@ passenger_seat 1 01C8: 12@ = create_actor_pedtype 8 model #LAPD1 in_car 9@ passenger_seat 20186: 13@ = create_marker_above_car 9@07E0: set_marker 13@ type_to 102AC: set_car 9@ immunities BP 1 FP 1 EP 1 CP 1 MP 1  00AD: set_car 9@ max_speed_to 60.000AE: set_car 9@ traffic_behaviour_to 200A7: car 9@ drive_to 0@ 1@ 2@0249: release_model #LAPD10249: release_model #COPCARLA0249: release_model #CELLPHONE :Police_20001: wait 0 msif01AD:   car 9@ sphere 0 near_point 0@ 1@ radius 5.0 5.0jf @Police_20164: disable_marker 13@ 0633: AS_actor 10@ exit_car0633: AS_actor 11@ exit_car0633: AS_actor 12@ exit_car//If you press P and the spacebar, a police car phoned by CJ arrives and the three person in it exit the car

 

Now, how can I say "put 10@, 11@ and 12@ in CJ's gang", like if I recruited them? And I also have minor questions:

1. If I put end_custom_thread, why can't I see the marker on the car? I can see it only on the radar.

2. How can I make the police lights activated?

Thanks in advance.

Link to comment
https://gtaforums.com/topic/465406-make-an-actor-as-if-it-is-in-your-gang/
Share on other sites

Peppo_o'Paccio

Thanks for your immediate answer, The_Siggi: I'll try those opcodes as fast as possible.

 

EDIT: They work perfectly! By the way, what do I have to do if I want to fix the error of the marker?

Edited by Peppo_o'Paccio

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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