Skip to content

Add new functions setElementOnFire + isElementOnFire & deprecate setPedOnFire/isPedOnFire #3783

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

Merged
merged 10 commits into from
Dec 30, 2024

Conversation

FileEX
Copy link
Contributor

@FileEX FileEX commented Oct 8, 2024

Fixed #3673

bool setElementOnFire(element target, bool onFire)
bool isElementOnFire(element target)

This PR adds two new functions common to elements such as ped, vehicle, and object. For peds and vehicles, the isElementOnFire state is synchronized, but not for objects, as object synchronization is currently disabled.

Also, the setPedOnFire and isPedOnFire functions are deprecated in favor of the new functions.

@botder botder added the enhancement New feature or request label Dec 30, 2024
@botder botder merged commit 7ad96e2 into multitheftauto:master Dec 30, 2024
6 checks passed
@botder botder added this to the 1.6.1 milestone Dec 30, 2024
MTABot pushed a commit that referenced this pull request Dec 30, 2024
7ad96e2 Add new functions is/setElementOnFire (PR #3783, Fixes #3673)
@FileEX FileEX deleted the feature/setElementOnFire branch December 31, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a new function setVehicleOnFire
5 participants