Colshape::isPointWithin

From RAGE Multiplayer Wiki
Revision as of 13:02, 21 November 2021 by Brzys (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Server-Side
Function

 JavaScript



Checking if a point is within the colshape.

Parameters

  • position: Vector3

Syntax

Server-Side
Boolean colshape.isPointWithin(position);

Example

Server-Side
let position = player.position;
if (colshape.isPointWithin(position)) {
    console.log("Inside Colshape");
} else {
    console.log("Outside Colshape");
}


See Also