Repairing Vehicle parts seperatly - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Repairing Vehicle parts seperatly (
/showthread.php?tid=265106)
Repairing Vehicle parts seperatly -
Moron - 29.06.2011
What do i need to do if i want to fix for example just the doors of the vehicle, but not the whole vehicle?
Re: Repairing Vehicle parts seperatly -
Cenation - 29.06.2011
i think it is not possible if it is then i dont knw...
Re: Repairing Vehicle parts seperatly -
Moron - 29.06.2011
I think i heard somewhere it is. ;/
Re: Repairing Vehicle parts seperatly -
Sasino97 - 29.06.2011
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
EDIT: OMG ****** posted 55 ms after me XD
Re: Repairing Vehicle parts seperatly -
Shadoww5 - 29.06.2011
Does anybody know a tutorial about
UpdateVehicleDamageStatus ?
If you know one, please post the link.
Re: Repairing Vehicle parts seperatly -
Sasino97 - 29.06.2011
Quote:
Originally Posted by Shadoww5
Does anybody know a tutorial about UpdateVehicleDamageStatus ?
If you know one, please post the link.
|
It's not a tutorial.
https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
You set the doors, lights, panels etc... to the amount of the damage.
It's NOT a Floating point Value, it's the set of bits containing the damage.
0 = Fixed 100%.
For example setting 15 on the tires will pop them up.
Re: Repairing Vehicle parts seperatly -
Shadoww5 - 29.06.2011
I know this article, but it's vey difficult to understand.
I am wondering if anyone knows a tutorial about this.
Re: Repairing Vehicle parts seperatly -
Sasino97 - 29.06.2011
Quote:
Originally Posted by Shadoww5
I know this article, but it's vey difficult to understand.
I am wondering if anyone knows a tutorial about this.
|
I ******d for it, but with no success
I think you put the amount of damage you want to set to the part of a vehicle.