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

Fix IsPersistent and MarkAsNoLongerNeeded() using the wrong natives #907

Merged
merged 1 commit into from
Jan 26, 2020

Conversation

drunderscore
Copy link
Contributor

@drunderscore drunderscore commented Jan 26, 2020

Closes #906

This changes the IsPersistent setter to execute MarkAsNoLongerNeeded() instead of the native SET_ENTITY_AS_MISSION_ENTITY when passed false.

This also removed the SET_ENTITY_AS_MISSION_ENTITY native call from MarkAsNoLongerNeeded(), as all it was doing was marking and then un-marking the entity as a mission entity.

The original changes were made in this commit, where it was incorrectly assumed that the SET_ENTITY_AS_MISSION_ENTITY native could also make an entity non-persistent.

@crosire crosire merged commit cac50e5 into scripthookvdotnet:master Jan 26, 2020
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.

Created vehicles cannot be made not persistent
2 participants