Jump to content

How to create Zoom in Zoom out Cleo SA Mobile


Raku_Friendly

Recommended Posts

Raku_Friendly

hello guys

 

i have a problem with my script cleo

 

im try to create zoom in but im failed and i am try again but im failed again

 

Please helpme to clear this my problem

What opcode to create zoom in zoom out in gta sa mobile

 

 

This is my script

 

 

:Phone_Kamera_Go5
wait 0
if 
09E7:   player $PLAYER_CHAR not_frozen 
else_jump @Phone_1
if and
8118:   not actor $PLAYER_ACTOR dead 
8741:   not actor $PLAYER_ACTOR busted 
8818:   not actor $PLAYER_ACTOR in_air 
80DF:   not actor $PLAYER_ACTOR driving 
84AD:   not actor $PLAYER_ACTOR in_water 
else_jump @Phone_0
0390: load_txd_dictionary 'TXD' 
038F: load_texture 'phone_camera' as 100 // Load dictionary with 0390 first 
074B: draw_texture 100 position 320.0 240.0 scale -250.0 250.0 angle 180.0 color_RGBA 255 255 255 255 
03F0: enable_text_draw 0 

0A51:   is_widget_pressed 50 // widget zoom in
else_jump @Phone_Kamera_Go6

(SCRIPT TO ZOOM IN PLEASE WRITE TO THIS)

jump @Phone_Kamera_Go5

 

:Phone_Kamera_Go6
wait 0
if 
09E7:   player $PLAYER_CHAR not_frozen 
else_jump @Phone_1
if and
8118:   not actor $PLAYER_ACTOR dead 
8741:   not actor $PLAYER_ACTOR busted 
8818:   not actor $PLAYER_ACTOR in_air 
80DF:   not actor $PLAYER_ACTOR driving 
84AD:   not actor $PLAYER_ACTOR in_water 
else_jump @Phone_0
0390: load_txd_dictionary 'TXD' 
038F: load_texture 'phone_camera' as 100 // Load dictionary with 0390 first 
074B: draw_texture 100 position 320.0 240.0 scale -250.0 250.0 angle 180.0 color_RGBA 255 255 255 255 
03F0: enable_text_draw 0 
0A51:   is_widget_pressed 51 // Zoom Out
else_jump @Phone_Kamera_Go4

(SCRIPT TO ZOOM OUT PLEASE WRITE TO THIS)
jump @Phone_Kamera_Go6

 

 

@ZAZ

Link to comment
Share on other sites

There isn't any zoom code

 

There's always a camera_position and a camera_target

If camera_position comes closer to camera_target, then it has the effect of a zoom

 

It needs to do math calculations

There're several camera codes

As first you must find out which camera codes you wanna use

Do opcode search for camera

 

Edited by ZAZ
Link to comment
Share on other sites

First you need to call function freezing camera distance updates, then call second function to set desired distance.

 

Um, I did not seen it is gta MOBILE. Mentioned solution was created for PC v1.0.

Edited by MiranDMC
  • Like 1
Link to comment
Share on other sites

You can try

032A: set_behind_camera_mode_to 1

This opcode change distance of follow player camera (same as toggling with camera key).

  • Like 1
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
  • 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.