Colshape::isPointWithin: Difference between revisions

From RAGE Multiplayer Wiki
m (category)
mNo edit summary
Line 29: Line 29:


[[Category:ColShape]]
[[Category:ColShape]]
[[Category:Server-side Event]]
[[Category:Server-side Function]]

Revision as of 12:26, 30 April 2019

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