Skip to content

Conversation

@FileEX
Copy link
Member

@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