#1 12-09-2018 07:17

TomasGL16
Registered: 12-09-2018
Posts: 1

help to generate parked car with components

I need help to generate parker car with components like nitro or hydraulic

this is my script:

{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
014B: $CAR1 = init_parked_car_generator #SABRE color 86 0 1 alarm 0 door_lock 0 0 10000 at 2491.5752 -1680.6293 12.9457 angle 9093.2475 wait 0
014C: set_parked_car_generator $CAR1 cars_to_generate_to 101

:AZ_302
wait 0
jump @AZ_302

Last edited by TomasGL16 (16-09-2018 16:15)

Offline

#2 13-09-2018 11:25

wmysterio
From: Ukraine
Registered: 04-03-2011
Posts: 174
Website

Re: help to generate parked car with components

TomasGL16 wrote:

I need help to generate auto parked with components like nitro or hydraulic

There is no such possibility. You must do this programmatically. Example:

{$CLEO}
0A95: enable_thread_saving // save car 0@ if need
014B: 0@ = init_parked_car_generator #SABRE color 86 0 1 alarm 0 door_lock 0 0 10000 at 2491.5752 -1680.6293 12.9457 angle 9093.2475
014C: set_parked_car_generator 0@ cars_to_generate_to 101 
1@ = 0 // check for added component

while true
wait 0
    if
    056E:   car 0@ defined
    then
        if and
        8119:   not car 0@ wrecked
        1@ == 0
        then  
        09E9: car 0@ add_single_nitro
        07FF: set_car 0@ hydraulics 1
        01C3: remove_references_to_car 0@ // if need
        1@ = 1
        end
    else
    1@ = 0
    end
end

Last edited by wmysterio (13-09-2018 11:27)

Offline

Board footer

Powered by FluxBB