Noah_Antilles Posted September 7, 2017 Share Posted September 7, 2017 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 IIYAMA Posted September 7, 2017 Moderators Share Posted September 7, 2017 This event should be able give that information: https://wiki.multitheftauto.com/wiki/OnClientVehicleCollision But the last time I checked it didn't work for planes and boats. So I am not sure if you can do it. Link to comment
Noah_Antilles Posted September 7, 2017 Author Share Posted September 7, 2017 I found no information of interest while looking at that event, could be just me, perhaps I am missing something. Is it perhaps hardcoded? I remember it's possible to "simulate" damage on cars, by popping its tires for example. Link to comment
Moderators IIYAMA Posted September 7, 2017 Moderators Share Posted September 7, 2017 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 1 Link to comment
Noah_Antilles Posted September 7, 2017 Author Share Posted September 7, 2017 SetVehiclePanelState has the information I was looking for, thanks for your help! Link to comment
Moderators IIYAMA Posted September 7, 2017 Moderators Share Posted September 7, 2017 np. Good luck! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now