altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Method to make every object raycastable

Open zziger opened this issue 3 years ago • 2 comments

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

zziger avatar Jul 14 '22 08:07 zziger

The feature would be super useful for e.g. some in-game map editors

zziger avatar Jul 14 '22 08:07 zziger

Apparently, after Vector set the flag on every archetype, most previously non-raycastable objects received physics on weapon hit

zziger avatar Jul 14 '22 09:07 zziger