#1 22-02-2008 13:27

CrazyTurk
Registered: 22-02-2008
Posts: 5

Place A Car

Hello

I want to place a car and i want to do it with CLEO mod but i dont know where to put it or how to make it i have sanny builder but i dont know where to put this line

-2035.194, 170.770, 28.462, 0, 401, 0, 1, 0, 100, 0, -1, -1

maybe you guys can help me

Offline

#2 22-02-2008 16:37

Seemann
Registered: 07-08-2006
Posts: 2,062

Re: Place A Car

{$CLEO}
0A95: enable_thread_saving

if
    0@ == 0
then
    014B: 1@ = init_parked_car_generator 401 color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2035.194 170.770 28.462 angle 90.0
    014C: set_parked_car_generator 1@ cars_to_generate_to 101
    0@ = 1
end
0A93: end_custom_thread

new file, copy&paste, compile'n'copy.

Offline

#3 22-02-2008 18:13

CrazyTurk
Registered: 22-02-2008
Posts: 5

Re: Place A Car

Thank You Thank You
It Works Perfect:^

Offline

#4 22-02-2008 18:33

CrazyTurk
Registered: 22-02-2008
Posts: 5

Re: Place A Car

1 more question

How do i do it with more cars

Offline

#6 01-03-2008 16:37

Seemann
Registered: 07-08-2006
Posts: 2,062

Re: Place A Car

btw, you do not even need for the extra local variable there, only 0A95 is needed:

{$CLEO}
0A95: enable_thread_saving
014B: 1@ = init_parked_car_generator 401 color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2035.194 170.770 28.462 angle 90.0
014C: set_parked_car_generator 1@ cars_to_generate_to 101
0A93: end_custom_thread

Offline

#7 04-06-2008 03:37

AlphaOmega
Registered: 02-06-2008
Posts: 98

Re: Place A Car

Seemann wrote:
{$CLEO}
0A95: enable_thread_saving
014B: 1@ = init_parked_car_generator 401 color -1 -1 1 alarm 0 door_lock 0 0 10000 at -2035.194 170.770 28.462 angle 90.0
014C: set_parked_car_generator 1@ cars_to_generate_to 101
0A93: end_custom_thread

why do you use 0A95: enable_thread_saving command?
what effect does it have?
I kinda write it like this (see below) and it works fine:

{$CLEO .cs}
014B: $MYCARH1 = init_parked_car_generator #HUNTER color 0 0 1 alarm 0 door_lock 0 0 10000 at 1550.0 1412.8 15.0 angle -270.0 
014B: $MYCARH2 = init_parked_car_generator #HUNTER color 0 0 1 alarm 0 door_lock 0 0 10000 at 1550.0 1512.8 15.0 angle -270.0 
014C: set_parked_car_generator $MYCARH1 cars_to_generate_to 101 
014C: set_parked_car_generator $MYCARH2 cars_to_generate_to 101

Offline

#8 04-06-2008 04:05

AlphaOmega
Registered: 02-06-2008
Posts: 98

Re: Place A Car

one more thing, what's the difference between 09E2 and 014B ?
if car is parked with 09E2: 0002@ = parked_car_generator_w_numberplate ... it is not parked untill you go away from this place and go back there...
but if it is parked with 014B: 0001@ = init_parked_car_generator ... it is where it was parked even if you start the game at that point...

and.... how do I park PETRO with PETROTR connected to it?

Offline

Board footer

Powered by FluxBB