CLEO Help draw_line

CLEO related
Status
Not open for further replies.

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
How To set when I turn that the line points to a certain object and like this when I turn the line points somewhere ahead?

Code:

Code:
if
                        0B51: samp 6@ = pickup_handle_by_id 4@
                        then
                            065B: store_pickup 6@ position_to 7@ 8@ 9@
                            /*if
                            00C2:   sphere_onscreen 7@ 8@ 9@  radius 0.0
                            then
                            */
                                if
                                9@ > 4
                                then
                                    21@++
                                    018C: play_sound 1139 at 0.0 0.0 0.0
                                    Actor.StorePos($PLAYER_ACTOR, 12@, 13@, 14@)
                                    0B55: convert_3D_coords 7@ 8@ 9@ to_screen 10@ 11@
                                    0B55: convert_3D_coords 12@ 13@ 14@ to_screen 15@ 16@
                                    0B68: render draw_line_point1 10@ 11@ point2 15@ 16@ width 1 color 0xCAFABC02
                                    050A: 17@ = distance_between_XYZ 12@ 13@ 14@ and_XYZ 7@ 8@ 9@
                                    0092: 17@ = float 17@ to_integer
                                    format 18@ "Ammo (%.3Gm)" 17@
 
Status
Not open for further replies.
Top