Jump to content

save visual damage vehicle


kino

Recommended Posts

what he is saying is: how can he save the vehicle damages . I mean if a vehicle loses a door, and then he exit server and go online again he will see that vehicle without the door :)

Did u understand ? :)

I actually dont know also, but is automatic synced right ? when we log off and log on.. I guess

Link to comment
  • Moderators

It is possible, but I am not sure if this script have to update these stats afther a player rejoins:

Get

https://wiki.multitheftauto.com/wiki/GetVehicleDoorState

Set

https://wiki.multitheftauto.com/wiki/SetVehicleDoorState

(I don't know, if you can check the lights if they are damaged. Also it will happen to all the lights.)

Get

https://wiki.multitheftauto.com/wiki/Get ... LightState

https://wiki.multitheftauto.com/wiki/Get ... rideLights

Set

https://wiki.multitheftauto.com/wiki/Set ... LightState

https://wiki.multitheftauto.com/wiki/Set ... rideLights

Maybe if you want this to: (I am also not sure about this one, if damage can sync this)

 

https://wiki.multitheftauto.com/wiki/Get ... rOpenRatio

 

https://wiki.multitheftauto.com/wiki/Set ... rOpenRatio

Link to comment
  • Moderators

Draken pls

If you know what he is talking about, than help him.

a vehicle is an element..... (theElement: The player or vehicle whose health you want to check. )

I know you are a much better scripter, but you are at the moment very unclear. Because I don't think he is talking about the vehicle health. He is talking about the damage that is visible. At doors etc.

Link to comment
Guest Guest4401
He is talking about the damage that is visible. At doors etc.

This is relative to the vehicle health.

Not really. setVehicleDoorState sets the door state to broken or missing and so forth being totally independent of the vehicle health and vice-versa.

Link to comment
Vehicle health is health of engine and most people can tell the difference between engine and doors :) So IIYAMA posted the right functions. But there are two more functions:
getVehiclePanelState 
setVehiclePanelState 

very senks

Link to comment
Vehicle health is health of engine and most people can tell the difference between engine and doors :) So IIYAMA posted the right functions. But there are two more functions:
getVehiclePanelState 
setVehiclePanelState 

Did you ever play GTA San Andreas? When your car gets damaged, fume appears, doors fall...

Link to comment
yes I did, hit the doors with your feet and hands and when you do it right, the door can break out.

Was I talking to you? No lol

hit the doors with your feet and hands and when you do it right, the door can break out.

Are you kidding me? What did I say?

Link to comment
Vehicle health is health of engine and most people can tell the difference between engine and doors :) So IIYAMA posted the right functions. But there are two more functions:
getVehiclePanelState 
setVehiclePanelState 

Did you ever play GTA San Andreas? When your car gets damaged, fume appears, doors fall...

Yes, I did. And did you? I shot the car with M4 until black smoke appeared and doors still weren't damaged at all.

Link to comment
I'm not talking about damaging the car with weapons. When you beat with the car in something, when it reaches a determinated health doors fall.

You were talking about vehicle element health and that includes any kind damage. Simple logic :)

Link to comment

Stop this nowhere-leading conversation already.

Topic says, "save visual damage vehicle".. It says it all. If you want to talk about whether you want to save the health or not, PM yourselves. Besides, door doesn't always fall off, as far as I know if the car is locked you can keep hitting the doors and they won't fall off; the car will start burning.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...