#1 22-12-2017 05:05

ESForces
Registered: 22-12-2017
Posts: 1

Make car immune...

I'm using this code:

014B: 1@ = init_parked_car_generator #HUNTER color 0 0 1 alarm 0 door_lock 0 0 10000 at 311.8512 1955.5172 25.0000 angle 90.0
014C: set_parked_car_generator 1@ cars_to_generate_to 101

I've used it for the ease of creating a vehicle at a specific point.

However, I'm having problems to put properties to this vehicle, properties such as:

 
0A21: set_car 1@ not_affected_by_cheats 1
08F2: set_car 1@ targettable_by_heatseeker 0

How could I place these properties on the vehicle using the method I provided at the beginning of this topic?

Last edited by ESForces (22-12-2017 05:06)

Offline

#2 22-12-2017 14:51

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

Re: Make car immune...

ESForces wrote:

0A21: set_car 1@ not_affected_by_cheats 1
08F2: set_car 1@ targettable_by_heatseeker 0

Use before:

if
056E:   car 1@ defined
then
// You'r code here
end

If car created in other thread, then use a global variable. The Game don't save this properties. Need always check car and set properties if car exist.

Last edited by wmysterio (22-12-2017 15:04)

Offline

Board footer

Powered by FluxBB