Colshape::isPointWithin: Difference between revisions
mNo edit summary |
m (category) |
||
| Line 28: | Line 28: | ||
[[Category:ColShape]] | [[Category:ColShape API]] | ||
[[Category:Server-side Function]] | [[Category:Server-side Function]] | ||
Revision as of 17:08, 17 May 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
- Functions
- Properties
- Arrays
- Functions