processLineAgainstMesh | Multi Theft Auto: Wiki Skip to content

processLineAgainstMesh

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Does a raycast against an element's renderable mesh model [not the collision model!]. The same functionality is already present in processLineOfSight, but the latter is a little buggy due to the fact that the collision model is always simplified, and not exactly the same as the mesh, which leads to situations where no hit is detected, even though the visible mesh is hittable [or vice versa]. Also, when one is interested in a specific element the overhead is a lot smaller [as we can skip all the collision detection done by the before-mentioned function].

Syntax

processLineAgainstMesh ( )

Code Examples

Script Example Missing

Function processLineAgainstMesh needs a script example. Help out by writing one.

Contribution guidelines

See Also

World Functions