Skip to content

Commit

Permalink
📝 update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Oct 31, 2024
1 parent dc7c67d commit 8c76a3a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 21 deletions.
20 changes: 13 additions & 7 deletions gta3/snippets/CLEO/0AE2.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
const LockoutPlayerOnly = 3
float x,y,z, radius=10.0
int Car
while true
wait 100
get_active_camera_coordinates store_to x y z
if get_random_car_in_sphere_no_save_recursive x y z radius findNext True skipWrecked True store_to Car
then lock_car_doors Car lockStatus LockoutPlayerOnly
wait {time} 100

float x, y, z
x, y, z = get_active_camera_coordinates

int color = generate_random_int_in_range {min} 0 {max} 9

// iterate near cars
int handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // initialize search, get first
while handle <> -1 // found!
change_car_colour handle {color1} color {color2} color

handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // get next
end
end
20 changes: 13 additions & 7 deletions sa/snippets/CLEO/0AE2.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
const LockoutPlayerOnly = 3
float x,y,z, radius=10.0
int Car
while true
wait 100
get_active_camera_coordinates store_to x y z
if get_random_car_in_sphere_no_save_recursive x y z radius findNext True skipWrecked True store_to Car
then lock_car_doors Car lockStatus LockoutPlayerOnly
wait {time} 100

float x, y, z
x, y, z = get_active_camera_coordinates

int color = generate_random_int_in_range {min} 0 {max} 9

// iterate near cars
int handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // initialize search, get first
while handle <> -1 // found!
change_car_colour handle {color1} color {color2} color

handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // get next
end
end
20 changes: 13 additions & 7 deletions vc/snippets/CLEO/0AE2.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
const LockoutPlayerOnly = 3
float x,y,z, radius=10.0
int Car
while true
wait 100
get_active_camera_coordinates store_to x y z
if get_random_car_in_sphere_no_save_recursive x y z radius findNext True skipWrecked True store_to Car
then lock_car_doors Car lockStatus LockoutPlayerOnly
wait {time} 100

float x, y, z
x, y, z = get_active_camera_coordinates

int color = generate_random_int_in_range {min} 0 {max} 9

// iterate near cars
int handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // initialize search, get first
while handle <> -1 // found!
change_car_colour handle {color1} color {color2} color

handle = get_random_car_in_sphere_no_save_recursive {pos} x y z {radius} 40.0 {findNext} true {skipWrecked} true // get next
end
end

0 comments on commit 8c76a3a

Please sign in to comment.