Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a 'destroy engine' button to Vehicle Options. #246

Closed
wants to merge 1 commit into from

Conversation

NylanderrDK
Copy link

I received several requests for a 'Destroy Engine' button in the Vehicle Options submenu. So I made it and added it to the submenu. A preview of the feature can be seen here: https://streamable.com/saeycl

@Explooosion-code
Copy link
Contributor

I would put the menu option before the delete option :D

@NylanderrDK
Copy link
Author

I would put the menu option before the delete option :D

That's definitely not a bad idea! Thank you.

// Destroy engine
else if (item == destroyEngine)
{
SetVehicleEngineHealth(vehicle.Handle, -4000);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting it to 0 should also kill it afaik, or maybe -1 should be good enough. I haven't tested it completely but let me know. Other than that this PR looks good.

@TomGrobbe
Copy link
Owner

Closing this PR because it's just been merged via PR #290

@TomGrobbe TomGrobbe closed this Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants