falvaimilan
Member
Hi guys,
I have this .cs file which repairs and flips the car.
I would like to know how to edit the amount of the car's health? So if a press "R" to repair the car I would like repair the car for 999 health, not 1000. I use Sanny Builder 3 and I can't find anything about it. (I don't know anything about programming, so I'm a noob).
Thanks for your help in advance,
-- Milan
I have this .cs file which repairs and flips the car.
I would like to know how to edit the amount of the car's health? So if a press "R" to repair the car I would like repair the car for 999 health, not 1000. I use Sanny Builder 3 and I can't find anything about it. (I don't know anything about programming, so I'm a noob).
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
:NONAME_2
wait 0
if
Player.Defined($PLAYER_CHAR)
if
Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_2
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0@ = 304543
if and
Actor.InCar($PLAYER_ACTOR, 1@)
&0(0@,1i) == 255
else_jump @NONAME_2
0A30: repair_car 1@
wait 0
if
01F4: car 1@ flipped
else_jump @NONAME_137
07DB: set_car 1@ rotation_velocity_XYZ 0.0 1.0 0.0 through_center_of_mass
Car.RemoveReferences(1@)
jump @NONAME_2
:NONAME_137
wait 200
Car.RemoveReferences(1@)
jump @NONAME_2
Thanks for your help in advance,
-- Milan