Jump to content

[Question] Simulate Damage


Noah_Antilles

Recommended Posts

Hello there, 

I've got a quick question regarding airplanes.

When a specific part of an airplane is damaged - its right wing, for example. The right wing's aileron becomes unstable,  making the plane rotate left and right on random.

Is there any way to damage this specific part of an airplane? so one can for example type /damagerightwing and the right wing gets damaged.

Thanks in advance,

 

Noah

Link to comment
  • Moderators

You first have to do some research if it accepts the vehicles you want to simulate.

 

https://wiki.multitheftauto.com/wiki/OnClientVehicleCollision

bodyPart: the bodypart that hit the other element (the body part on the documentation is not the same for all vehicles)

collisionX/Y/Z: the position the collision took place (Afaik this is the offset > excluded the vehicle orientation)

Both could be used to locate the vehicle part.

 

And this could be used for the damage simulation:

https://wiki.multitheftauto.com/wiki/SetVehiclePanelState

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

https://wiki.multitheftauto.com/wiki/SetVehicleWheelStates

 

 

  • Thanks 1
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...