Colshape::isPointWithin

From RAGE Multiplayer Wiki
Revision as of 18:35, 3 October 2017 by Xylum (talk | contribs) (Added example)

Checking if a point is within the colshape.

Parameters

  • position: Vector3

Syntax

Server-Side
colshape.isPointWithin(position);

Example

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


See Also