altv-issues
altv-issues copied to clipboard
Method to make every object raycastable
Description of the problem
As for now you can raycast only objects, that have 131072 flag on their archetype definition. It would open a lot of different possibilities if we could have ability to somehow set it on runtime
Desired solution for the problem
Something like alt.enableRaycastForAllArchetypes, or a method which would get current loaded archetype objects list, and the object would have some basic info alongside with the flags setter.
Alternatives you considered
🥲
Additional context
No response
Version
release/10.10
The feature would be super useful for e.g. some in-game map editors
Apparently, after Vector set the flag on every archetype, most previously non-raycastable objects received physics on weapon hit