Raycasting::testVisualDrawablePointToPoint

From RAGE Multiplayer Wiki
Revision as of 17:42, 16 March 2025 by Shr0x (talk | contribs) (→‎See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


Required Params

  • rayStart: Vector3 — The starting position of the raycast.
  • rayEnd: Vector3 — The ending position of the raycast.
  • flags: number (optional, default: -1) — Flags that determine the behavior of the raycast.

Return value

  • 'Object' — Returns an object containing information about the hit result.

Syntax

mp.raycasting.testVisualDrawablePointToPoint(rayStart, rayEnd, flags = -1)

Example

// todo


See Also