ajidehak Posted August 13, 2011 Share Posted August 13, 2011 (edited) hi, i want use this lines in my mod but when in my code reach to "gosub @CameraTargetPointManipulated" then my code fall to cycle oo(infinity). and another thing, i want to change timer length of cj death. if anyone help me to correct my code , i thanks of he or her. before anything i thanks all people that read my topic. :camera068D: get_camera_position_to [email protected] [email protected] [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 100.0 0936: set_camera [email protected] [email protected] [email protected] position_to [email protected] [email protected] [email protected] time 3000 drop_mode 1 gosub @CameraPositionManipulated 0159: camera_on_ped $PLAYER_ACTOR 18 1 gosub @CameraTargetPointManipulated 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 1.0 0936: set_camera [email protected] [email protected] [email protected] position_to [email protected] [email protected] [email protected] time 3000 drop_mode 1 gosub @CameraPositionManipulated 0158: camera_on_car [email protected] 15 1 gosub @CameraTargetPointManipulated return:CameraPositionManipulatedwait 0 if 0933: camera_position_manipulatedjf @CameraPositionManipulatedreturn:CameraTargetPointManipulatedwait 0 if 0934: camera_target_point_manipulatedjf @CameraTargetPointManipulatedreturn Edited August 13, 2011 by ajidehak Link to comment Share on other sites More sharing options...
ZAZ Posted August 13, 2011 Share Posted August 13, 2011 (edited) why do you need opcode 0159:? read >here< about opcode 0159: why do you need this gosub @CameraTargetPointManipulated ? how should we correct your code when you don't tell us your plan? and another thing, i want to change timer length of cj death. you mean the wasted screen when player died? It's execoded. Edited August 13, 2011 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ajidehak Posted August 14, 2011 Author Share Posted August 14, 2011 i create new mod with name ambulance for cj, and when ambulane move for cj then camera turn to ambulance but i want when camera turning to ambulance, camera move to up and point target of camera lock in cj when camera reach to up then target point move to car and lock on it and then camera position move to car, my code correct until camera move to up lock on cj then loop to infinity and all thing go to bad, i want help. Link to comment Share on other sites More sharing options...
ZAZ Posted August 14, 2011 Share Posted August 14, 2011 try these codes 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0 20.0 10.0 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 0.0 1.0015F: set_camera_position [email protected] [email protected] [email protected] 0.0 0.0 0.00160: point_camera [email protected] [email protected] [email protected] 2 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0 20.0 10.0015F: set_camera_position [email protected] [email protected] [email protected] 0.0 0.0 0.00159: camera_on_ped $PLAYER_ACTOR 15 2 067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0.0 5.0 3.0 rotation 0.0 0.5 0.5 0.0 2 to restore camera to default mode 0373: set_camera_directly_behind_player02EB: restore_camera_with_jumpcut CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ajidehak Posted August 14, 2011 Author Share Posted August 14, 2011 (edited) hi zaz, i not want jump very immedietli to cj or to ambulance i want turning with 2secends or more because u wright to me camera on ped with unit 2 ,unit 2 for jumping immediatly.correct? i see your link but i one question ,when i use flag2 with number1 i nwwd somthing like gosub target but u say to me i what need to use it!!!see it:camera help and please see my other two new mods and send to me your average for my work. thanks Edited August 17, 2011 by ajidehak Link to comment Share on other sites More sharing options...
ZAZ Posted August 17, 2011 Share Posted August 17, 2011 your posted script snippet from above :camera068D: get_camera_position_to [email protected] [email protected] [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 100.0 0936: set_camera [email protected] [email protected] [email protected] position_to [email protected] [email protected] [email protected] time 3000 drop_mode 1 gosub @CameraPositionManipulated 0159: camera_on_ped $PLAYER_ACTOR 18 1 gosub @CameraTargetPointManipulated 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 1.0 0936: set_camera [email protected] [email protected] [email protected] position_to [email protected] [email protected] [email protected] time 3000 drop_mode 1 gosub @CameraPositionManipulated 0158: camera_on_car [email protected] 15 1 gosub @CameraTargetPointManipulated return :CameraPositionManipulated wait 0 if 0933: camera_position_manipulated jf @CameraPositionManipulated return :CameraTargetPointManipulated wait 0 if 0934: camera_target_point_manipulated jf @CameraTargetPointManipulated return opcode 0159: have no effect the subscripts :CameraPositionManipulated and :CameraTargetPointManipulated don't makes sense for me you could also just write: :camera068D: get_camera_position_to [email protected] [email protected] [email protected] 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 100.0 0936: set_camera [email protected] [email protected] [email protected] position_to [email protected] [email protected] [email protected] time 3000 drop_mode 1return to get the same effect opcode 0159: works very well together with opcode 015F: therefor i posted: 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0 20.0 10.0015F: set_camera_position [email protected] [email protected] [email protected] 0.0 0.0 0.00159: camera_on_ped $PLAYER_ACTOR 15 2 the standart variation to use opcode 015F: is: 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 5.0 20.0 10.004C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 0.0 1.0015F: set_camera_position [email protected] [email protected] [email protected] 0.0 0.0 0.00160: point_camera [email protected] [email protected] [email protected] 2 the last parameter in opcode 0159: as well in opcode 0160: sets the camera change mode either 0160: point_camera [email protected] [email protected] [email protected] 2// direct cut change as well as 0159: camera_on_ped $PLAYER_ACTOR 15 2// direct cut change to make a direct cut camera change or 0160: point_camera [email protected] [email protected] [email protected] 1// smooth move change as well as 0159: camera_on_ped $PLAYER_ACTOR 15 1// smooth move change to make a moving camera change Please post your whole script next time List of camera related opcodes: 02Eb 0925 015A 0373 041D 032A 09AD 0A39 093D 0A2F 0460 0936 015F 068D 0930 0933 0920 0160 068E 092F 0934 0801 0931 0922 09EF 09F0 0158 0679 067A 067B 0159 067C 067E 0A25 0003 099C 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