Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

camera motion


ajidehak
 Share

Recommended Posts

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 by ajidehak
Link to comment
Share on other sites

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 by ZAZ
Link to comment
Share on other sites

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

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

 

Link to comment
Share on other sites

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 by ajidehak
Link to comment
Share on other sites

your posted script snippet from above

 

:camera

068D: 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

Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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