NotAvailableToday Posted November 2, 2009 Share Posted November 2, 2009 (edited) Hey, I got a problem, in my script after a cutscene they actors should kill cj, but after I killed the first iraqi the second part is coming and the first iraqis are doing nothing, I dunno why, but I think it is because of the if and because there are to much opcodes but I dunno Code part //after Cutscene02A3: enable_widescreen 0 0826: enable_hud 1 0581: enable_radar 1 015A: restore_camera wait 0 ms:SCENE2_17750615: define_AS_pack_begin $kill 05BF: AS_actor -1 look_at_actor $PLAYER_ACTOR 1000 ms 0638: AS_actor -1 stay_put 1 05E2: AS_actor -1 kill_actor $PLAYER_ACTOR 0616: define_AS_pack_end $kill 0618: assign_actor $iraq006 to_AS_pack $kill 0618: assign_actor $iraq008 to_AS_pack $kill 0618: assign_actor $iraq009 to_AS_pack $kill 0618: assign_actor $iraq0011 to_AS_pack $kill 0618: assign_actor $iraq0012 to_AS_pack $kill 0618: assign_actor $iraq0013 to_AS_pack $kill 0618: assign_actor $iraq0014 to_AS_pack $kill 0618: assign_actor $iraq0015 to_AS_pack $kill 0618: assign_actor $iraq0016 to_AS_pack $kill 0187: $MARKER1 = create_marker_above_actor $iraq006 0187: $MARKER2 = create_marker_above_actor $iraq008 0187: $MARKER3 = create_marker_above_actor $iraq009 0187: $MARKER4 = create_marker_above_actor $iraq00110187: $MARKER5 = create_marker_above_actor $iraq00120187: $MARKER6 = create_marker_above_actor $iraq0013 0187: $MARKER7 = create_marker_above_actor $iraq0014 0187: $MARKER8 = create_marker_above_actor $iraq0015 0187: $MARKER9 = create_marker_above_actor $iraq001605D3: AS_actor $iraq0012 goto_point -785.0366 1550.4641 27.1172 mode 6 7000 ms // versionA 05D3: AS_actor $iraq0013 goto_point -786.0465 1546.9272 27.1134 mode 6 7000 ms // versionA 05D3: AS_actor $iraq0014 goto_point -783.7072 1535.2219 26.9609 mode 6 20000 ms // versionA 04EB: AS_actor $iraq0011 crouch 1 04EB: AS_actor $iraq0016 crouch 1 0635: AS_actor $iraq0016 aim_at_actor $PLAYER_ACTOR 9999999 ms 0635: AS_actor $iraq0015 aim_at_actor $PLAYER_ACTOR 9999999 ms 00BC: show_text_highpriority GXT 'IRAQ15' time 3000 flag 1 wait 10000 ms:SCENE2_1190wait 0 msif and //here?0118: actor $iraq0016 dead 0118: actor $iraq0011 dead 0118: actor $iraq0012 dead 0118: actor $iraq0013 dead 0118: actor $iraq0014 dead 0118: actor $iraq0015 dead 0118: actor $iraq006 dead 0118: actor $iraq008 dead 0118: actor $iraq009 dead jf @SCENE2_11900164: disable_marker $MARKER10164: disable_marker $MARKER20164: disable_marker $MARKER30164: disable_marker $MARKER40164: disable_marker $MARKER50164: disable_marker $MARKER60164: disable_marker $MARKER70164: disable_marker $MARKER80164: disable_marker $MARKER900BC: show_text_highpriority GXT 'IRAQ16' time 3000 flag 1 02A7: $bomb = create_icon_marker_and_sphere 14 at -721.8484 1437.0945 18.4766//new iraqis 1009A: $iraq0017 = create_actor_pedtype 4 model #WMOTR1 at -740.9534 1441.5773 19.5651009A: $iraq0018 = create_actor_pedtype 4 model #VWMYCD at -768.9609 1481.9673 28.9957 009A: $iraq0019 create_actor_pedtype 4 model #VHMYCR at -779.499 1501.389 23.8561009A: $iraq0020 = create_actor_pedtype 4 model #SOMYST at -781.959 1500.5502 23.64 009A: $iraq0021 = create_actor_pedtype 4 model #SBMYRI at -794.7294 1509.1049 22.3951009A: $iraq0022 = create_actor_pedtype 4 model #SBMOST at -741.4908 1504.0331 28.3257 009A: $iraq0023 = create_actor_pedtype 4 model #VHMYCR at -718.8036 1478.2856 23.1662 0173: set_actor $iraq0017 Z_angle_to 14.5865 0173: set_actor $iraq0018 Z_angle_to 349.3708 0173: set_actor $iraq0019 Z_angle_to 258.36220173: set_actor $iraq0020 Z_angle_to 278.36090173: set_actor $iraq0021 Z_angle_to 272.83050173: set_actor $iraq0022 Z_angle_to 74.55910173: set_actor $iraq0023 Z_angle_to 78.303401B2: give_actor $iraq0017 weapon 30 ammo 9999 // Load the weapon model before using this 01B2: give_actor $iraq0018 weapon 30 ammo 9999 // Load the weapon model before using this 01B2: give_actor $iraq0019 weapon 30 ammo 9999 // Load the weapon model before using this 01B2: give_actor $iraq0020 weapon 30 ammo 9999 // Load the weapon model before using this 01B2: give_actor $iraq0021 weapon 30 ammo 9999 // Load the weapon model before using this 01B2: give_actor $iraq0022 weapon 35 ammo 9999 // Load the weapon model before using this 01B2: give_actor $iraq0023 weapon 30 ammo 9999 // Load the weapon model before using this 01B9: set_actor $iraq0017 armed_weapon_to 30 01B9: set_actor $iraq0018 armed_weapon_to 30 01B9: set_actor $iraq0019 armed_weapon_to 30 01B9: set_actor $iraq0020 armed_weapon_to 30 01B9: set_actor $iraq0021 armed_weapon_to 30 01B9: set_actor $iraq0022 armed_weapon_to 30 01B9: set_actor $iraq0023 armed_weapon_to 30 04EB: AS_actor $iraq0018 crouch 1 04EB: AS_actor $iraq0019 crouch 1 0635: AS_actor $iraq0017 aim_at_actor $PLAYER_ACTOR 9999999 ms 0635: AS_actor $iraq0018 aim_at_actor $PLAYER_ACTOR 9999999 ms 0635: AS_actor $iraq0019 aim_at_actor $PLAYER_ACTOR 9999999 ms 0635: AS_actor $iraq0021 aim_at_actor $PLAYER_ACTOR 9999999 ms 0635: AS_actor $iraq0022 aim_at_actor $PLAYER_ACTOR 9999999 ms 0635: AS_actor $iraq0023 aim_at_actor $PLAYER_ACTOR 9999999 ms 05D3: AS_actor $iraq0020 goto_point -774.6465 1508.6332 25.046 mode 6 7000 ms // versionA 0615: define_AS_pack_begin $kill1 05BF: AS_actor -1 look_at_actor $PLAYER_ACTOR 1000 ms 0638: AS_actor -1 stay_put 1 05E2: AS_actor -1 kill_actor $kill1 0616: define_AS_pack_end $kill1 0618: assign_actor $iraq0017 to_AS_pack $kill1 0618: assign_actor $iraq0018 to_AS_pack $kill10618: assign_actor $iraq0019 to_AS_pack $kill1 0618: assign_actor $iraq0020 to_AS_pack $kill10618: assign_actor $iraq0021 to_AS_pack $kill10618: assign_actor $iraq0022 to_AS_pack $kill10618: assign_actor $iraq0023 to_AS_pack $kill10187: $MARKER10 = create_marker_above_actor $iraq00170187: $MARKER11 = create_marker_above_actor $iraq00180187: $MARKER12 = create_marker_above_actor $iraq00190187: $MARKER13 = create_marker_above_actor $iraq00200187: $MARKER14 = create_marker_above_actor $iraq00210187: $MARKER15 = create_marker_above_actor $iraq00220187: $MARKER16 = create_marker_above_actor $iraq0023wait 10000 ms Thanks Edited November 2, 2009 by Zombie.modder Link to comment Share on other sites More sharing options...
2pacproducer2 Posted November 3, 2009 Share Posted November 3, 2009 (edited) Try using local variables like [email protected] [email protected] [email protected] for the actors, instead of this $iraq0017 or instead of these lines: :SCENE2_17750615: define_AS_pack_begin $kill05BF: AS_actor -1 look_at_actor $PLAYER_ACTOR 1000 ms0638: AS_actor -1 stay_put 105E2: AS_actor -1 kill_actor $PLAYER_ACTOR0616: define_AS_pack_end $kill0618: assign_actor $iraq006 to_AS_pack $kill0618: assign_actor $iraq008 to_AS_pack $kill0618: assign_actor $iraq009 to_AS_pack $kill0618: assign_actor $iraq0011 to_AS_pack $kill0618: assign_actor $iraq0012 to_AS_pack $kill0618: assign_actor $iraq0013 to_AS_pack $kill0618: assign_actor $iraq0014 to_AS_pack $kill0618: assign_actor $iraq0015 to_AS_pack $kill0618: assign_actor $iraq0016 to_AS_pack $kill use :SCENE2_1775077A: set_actor $iraq006 acquaintance 4 to_actors_pedtype 0 // see ped.dat 077A: set_actor $iraq008 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq009 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq0011 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq0012 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq0013 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq0014 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq0015 acquaintance 4 to_actors_pedtype 0 // see ped.dat077A: set_actor $iraq0016 acquaintance 4 to_actors_pedtype 0 // see ped.dat or You missed $iraq007 actor in the lines. I'm too tired now to see the script in game and edit it in SB. Edited November 3, 2009 by 2pacproducer2 Link to comment Share on other sites More sharing options...
ZAZ Posted November 3, 2009 Share Posted November 3, 2009 (edited) Hey,I got a problem, in my script after a cutscene they actors should kill cj, but after I killed the first iraqi the second part is coming and the first iraqis are doing nothing, I dunno why, but I think it is because of the if and because there are to much opcodes but I dunno Code part Thanks Who is actor $kill1 ? 0615: define_AS_pack_begin $kill1 05BF: AS_actor -1 look_at_actor $PLAYER_ACTOR 1000 ms 0638: AS_actor -1 stay_put 1 05E2: AS_actor -1 kill_actor $kill1 0616: define_AS_pack_end $kill1 Edited November 3, 2009 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
NotAvailableToday Posted November 3, 2009 Author Share Posted November 3, 2009 yes ZAZ I seen that too and already changed it but still same problem Link to comment Share on other sites More sharing options...
2pacproducer2 Posted November 3, 2009 Share Posted November 3, 2009 05E2: AS_actor -1 kill_actor $kill1 Anyways you tried what I said ? 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