Peppo_o'Paccio Posted March 15, 2010 Share Posted March 15, 2010 I search an opcode that moves a plane to the coordinates that you write but without flying. Does it exist? Did you find it? Link to comment Share on other sites More sharing options...
ZAZ Posted March 15, 2010 Share Posted March 15, 2010 I search an opcode that moves a plane to the coordinates that you write but without flying. Does it exist? Did you find it? search for velocity CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Peppo_o'Paccio Posted March 15, 2010 Author Share Posted March 15, 2010 (edited) Like these? 06A2: get_car [email protected] velocity_in_direction_XYZ 1969.3318 -2493.1348 0.0 00AD: set_car [email protected] max_speed_to 10.0 Tried, they don't work edit: WAIT! I changed a wrong opcode. Now i'll retry Edited March 15, 2010 by Peppo_o'Paccio Link to comment Share on other sites More sharing options...
ZAZ Posted March 15, 2010 Share Posted March 15, 2010 Like these? 06A2: get_car [email protected] velocity_in_direction_XYZ 1969.3318 -2493.1348 0.0 00AD: set_car [email protected] max_speed_to 10.0 Tried, they don't work maybe you need it or this 04BA: set_car [email protected] speed_instantly 20.0 normaly is used a "fly to" command with destination parameter 04D2: set_plane [email protected] fly_autopilot_around_point 500.0 500.5 500.0 altitude_between 0.0 and 2000.5 but you said move, without flying 07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.03 rotation_velocitiesXY 0.0 0.0 unk 0.0 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Peppo_o'Paccio Posted March 15, 2010 Author Share Posted March 15, 2010 In this code 07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.0 rotation_velocitiesXY 0.0 0.0 unk 0.0 what must I add after rotation_velocitiesXY and after unk? And, please, can you tell me why? Because when I used it the plane after 10 meters stopped. Link to comment Share on other sites More sharing options...
ZAZ Posted March 15, 2010 Share Posted March 15, 2010 In this code 07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.0 rotation_velocitiesXY 0.0 0.0 unk 0.0 what must I add after rotation_velocitiesXY and after unk? And, please, can you tell me why? Because when I used it the plane after 10 meters stopped. you can keep unk 0.0 important is what you insert here set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.0 what did you insert? [email protected] and [email protected]? how did you calculate [email protected] [email protected]? try first this for example: set_car [email protected] velocity_in_direction_XYZ 10.0 10.0 5.0 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Peppo_o'Paccio Posted March 15, 2010 Author Share Posted March 15, 2010 I inserted the coordinates there, and when I insert that things after set_car [email protected] velocity_in_direction_XYZ my plane goes only for 5 meters. Wait, can we do another thing? I post the script and will you modify it ok? Please! {$CLEO .cs}// This script adds a telephone and when you call the 952 a beagle comes:Tour03A4: name_thread 'TOUR':Tour_10001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Tour_1if00FF: actor $PLAYER_ACTOR sphere 1 in_sphere 2016.6624 -2359.2634 13.5469 radius 1.0 1.0 1.0 on_foot // I created a telephone near this004D: jump_if_false @Tour_1:Number_10001: wait 0 msif0AB0: key_pressed 105 // 9 numtab if Bloc Num is ON004D: jump_if_false @Number_1:Number_20001: wait 0 msif0AB0: key_pressed 101 // 5 numtab if Bloc Num is ON004D: jump_if_false @Number_2:Number_30001: wait 0 msif0AB0: key_pressed 98 // 2 numtab if Bloc Num is ON004D: jump_if_false @Number_3:Load_n_check0001: wait 0 ms0247: load_model #BEAGLE0247: load_model #WMYPLT // Pilotif and0256: player $PLAYER_CHAR defined 0248: model #BEAGLE available0248: model #WMYPLT available // Pilot004D: jump_if_false @Load_n_check00A5: [email protected] = create_car #BEAGLE at 2120.1924 -2495.2961 13.54690175: set_car [email protected] Z_angle_to 88.9290129: [email protected] = create_actor_pedtype 8 model #WMYPLT in_car [email protected] driverseat0186: [email protected] = create_marker_above_car [email protected]: set_marker [email protected] type_to 10223: set_actor [email protected] health_to 50000446: set_actor [email protected] immune_to_headshots 0 0249: release_model #BEAGLE0249: release_model #WMYPLT :Tour_20001: wait 0 ms07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.0 rotation_velocitiesXY 0.0 0.0 unk 0.0 // here I want that my Beagle goes at 2012.4185 -2493.6519 13.539104BA: set_car [email protected] speed_to 30.0 :Tour_30001: wait 4000 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Tour_3if and 80DF: not actor $PLAYER_ACTOR driving00FF: actor $PLAYER_ACTOR sphere 1 in_sphere 0.0 0.0 0.0 radius 2.0 2.0 2.0 on_foot //I must work on this0AB0: key_pressed 71 // G004D: jump_if_false @Tour_30430: put_actor $PLAYER_ACTOR into_car [email protected] passenger_seat 00164: disable_marker [email protected]: set_plane [email protected] fly_autopilot_around_point 0.0 0.0 0.0 altitude_between 0.0 and 0.0 // I must work on this 04BA: set_car [email protected] speed_to 0.0 //I must work on this :Tour_40001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Tour_4 if 8202: not actor $PLAYER_ACTOR near_car [email protected] radius 1000.0 1000.0 flag 0004D: jump_if_false @Tour_4009B: destroy_actor [email protected]: destroy_car [email protected]: jump @Tour_1 Link to comment Share on other sites More sharing options...
ZAZ Posted March 15, 2010 Share Posted March 15, 2010 test this {$CLEO .cs}// This script adds a telephone and when you call the 952 a beagle comes:Tour03A4: name_thread 'TOUR' :Tour_10001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Tour_1if00FF: actor $PLAYER_ACTOR sphere 1 in_sphere 2016.6624 -2359.2634 13.5469 radius 1.0 1.0 1.0 on_foot // I created a telephone near this004D: jump_if_false @Tour_1:Number_10001: wait 0 msif0AB0: key_pressed 105 // 9 numtab if Bloc Num is ON004D: jump_if_false @Number_1:Number_20001: wait 0 msif0AB0: key_pressed 101 // 5 numtab if Bloc Num is ON004D: jump_if_false @Number_2:Number_30001: wait 0 msif0AB0: key_pressed 98 // 2 numtab if Bloc Num is ON004D: jump_if_false @Number_30247: load_model #BEAGLE0247: load_model #WMYPLT // Pilot:Load_n_check0001: wait 0 msif and0248: model #BEAGLE available0248: model #WMYPLT available // Pilot004D: jump_if_false @Load_n_check00A5: [email protected] = create_car #BEAGLE at 2120.1924 -2495.2961 13.54690175: set_car [email protected] Z_angle_to 88.9290129: [email protected] = create_actor_pedtype 8 model #WMYPLT in_car [email protected] driverseat0186: [email protected] = create_marker_above_car [email protected]: set_marker [email protected] type_to 10223: set_actor [email protected] health_to 50000446: set_actor [email protected] immune_to_headshots 00249: release_model #BEAGLE0249: release_model #[email protected] = 0:Tour_20001: wait 0 ms0174: [email protected] = car [email protected] z_angle02F6: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 1.3 // floating-point values0013: [email protected] *= 1.3 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.1 rotation_velocitiesXY 0.0 0.0 unk [email protected] > 2000jf @Tour_204D2: set_plane [email protected] fly_autopilot_around_point 0.0 0.0 0.0 altitude_between 0.0 and 1000.0 // I must work on this04BA: set_car [email protected] speed_to 50.0 //I must work on this:Tour_30001: wait 4000 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Tour_3if and80DF: not actor $PLAYER_ACTOR driving00FF: actor $PLAYER_ACTOR sphere 1 in_sphere 0.0 0.0 0.0 radius 2.0 2.0 2.0 on_foot //I must work on this0AB0: key_pressed 71 // G004D: jump_if_false @Tour_30430: put_actor $PLAYER_ACTOR into_car [email protected] passenger_seat 00164: disable_marker [email protected]: set_plane [email protected] fly_autopilot_around_point 0.0 0.0 0.0 altitude_between 0.0 and 0.0 // I must work on this04BA: set_car [email protected] speed_to 0.0 //I must work on this:Tour_40001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @Tour_4if8202: not actor $PLAYER_ACTOR near_car [email protected] radius 1000.0 1000.0 flag 0004D: jump_if_false @Tour_4009B: destroy_actor [email protected]: destroy_car [email protected]: jump @Tour_1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Peppo_o'Paccio Posted March 15, 2010 Author Share Posted March 15, 2010 Good job but I think you made a mistake, because when the plane is spawned, it flies, and I want it on the ground. Anyway, doesn't matter and I'll use this in another script 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