Raycasting::testVisualDrawablePointToPoint

From RAGE Multiplayer Wiki
Revision as of 17:39, 16 March 2025 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''rayStart:''' {{RageType|Vector3}} — The starting position of the raycast. *'''rayEnd:''' {{RageType|Vector3}} — The ending position of the raycast. *'''flags:''' {{RageType|number}} (optional, default: -1) — Flags that determine the behavior of the raycast. ===Return value=== *'''{{RageType|Object}}''' — Returns an object containing information about the hit result. ==Syntax== <syntaxhighlight l...")
(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