Raycasts an Entity in the world
If successful, returns the EntityAPI hit and the exact world position hit as a Vector3.
When unsuccessful, returns nil.
predicate is a function that prevents specific entities from being raycasted.
Takes in a single EntityAPI object. Return true for valid entities, false for invalid.
Marks all entities as valid when nil 
overload 1:
RaycastAPI.entity(start: Vector3, end: Vector3, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| end accepts | typings.2002444080||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
overload 2:
RaycastAPI.entity(startX: Number, startY: Number, startZ: Number, end: Vector3, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| end accepts | typings.2002444080||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
overload 3:
RaycastAPI.entity(start: Vector3, endX: Number, endY: Number, endZ: Number, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
overload 4:
RaycastAPI.entity(startX: Number, startY: Number, startZ: Number, endX: Number, endY: Number, endZ: Number, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
listFiles
action_wheel
Action
BlockRaycastTypes