Kriskers Posted March 12, 2010 Share Posted March 12, 2010 OK, I made a mod which creates a newvan to follow you when you have more than 3 police stars but I dont want that the people in the newsvan will shoot me!!!! My script is this: 0000: NOP jump @NONAME_9 :NONAME_9wait 50 if Player.WantedLevel($PLAYER_CHAR) > 2else_jump @NONAME_9 wait 100 Model.Load(#NEWSVAN)Model.Load(#HMOGAR)038B: load_requested_models wait 500 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 50.0 0.0 5.0 02C1: store_to [email protected] [email protected] [email protected] car_path_coords_closest_to [email protected] [email protected] [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 6.0 0.0 0.0 [email protected] = Car.Create(#NEWSVAN, [email protected], [email protected], [email protected])0209: $CARCOLOR = random_int_in_ranges 1 1 0229: set_car [email protected] primary_color_to $CARCOLOR secondary_color_to $CARCOLOR 0129: [email protected] = create_actor_pedtype 6 model #HMOGAR in_car [email protected] driverseat Actor.Health([email protected]) = 100Actor.Armour([email protected]) = 50Actor.Angle([email protected]) = 180.0060B: set_actor [email protected] decision_maker_to 3 Car.SetImmunities([email protected], 0, 0, 0, 1, 0)Actor.WeaponAccuracy([email protected]) = 750446: set_actor [email protected] immune_to_headshots 0 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 07DD: set_actor [email protected] temper_to 100 // see pedstats.dat 01C8: [email protected] = create_actor_pedtype 6 model #HMOGAR in_car [email protected] passenger_seat 0 Actor.Health([email protected]) = 100Actor.Armour([email protected]) = 50Actor.Angle([email protected]) = 180.0060B: set_actor [email protected] decision_maker_to 3 Actor.WeaponAccuracy([email protected]) = 700446: set_actor [email protected] immune_to_headshots 0 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 07DD: set_actor [email protected] temper_to 80 // see pedstats.dat Car.SetDriverBehaviour([email protected], 5)Car.SetMaxSpeed([email protected], 85.0)Car.Health([email protected]) = 5000Car.SetImmunities([email protected], 0, 0, 0, 1, 0)wait 300 jump @NONAME_377 :NONAME_377wait 50 if 00F2: actor $PLAYER_ACTOR near_actor [email protected] radius 60.0 60.0 0 else_jump @NONAME_377 0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 90000.0 4 1 firing_rate 80 wait 60000 jump @NONAME_9 Now tell me how do I do so that the newsvan drivers wouldnt driveby me! Ive tried to delete "NONAME_377" but that crashes the game!! Oh and also could you please tell me how do i get the newsvan drivers get out of the car when they stop near me (when I am also stopped) and they would take pictures of me! Sorry for my bad English! Link to comment Share on other sites More sharing options...
ZAZ Posted March 13, 2010 Share Posted March 13, 2010 pedtype 6 gives your actor the default behavior of a cop try it with pedtype 24 this gives your actor also a predefined behavior: 060B: set_actor [email protected] decision_maker_to 3 I don't know which, remove the line and try it again this line let one of your actors do drivby 0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 90000.0 4 1 firing_rate 80 remove it or replace it with another opcode CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now