24 lines
608 B
TypeScript
24 lines
608 B
TypeScript
/**
|
|
* Worldprobe Functions
|
|
* @public
|
|
* @noSelf
|
|
*/
|
|
declare namespace worldprobe {
|
|
|
|
enum eRayIntersect {
|
|
RAYINT_MAP = 1 << 0,
|
|
RAYINT_VEH = 1 << 1,
|
|
RAYINT_PED = 1 << 2,
|
|
RAYINT_PED2 = 1 << 3,
|
|
RAYINT_OBJECT = 1 << 4,
|
|
RAYINT_UNK0 = 1 << 5,
|
|
RAYINT_UNK1 = 1 << 6,
|
|
RAYINT_UNK2 = 1 << 7,
|
|
RAYINT_VEGETATION = 1 << 8,
|
|
}
|
|
|
|
function raycast(start: v3, end: v3, intersect: int, ignore: Entity): [hit: boolean, hitPos: v3, hitSurf: v3, hitMat: Hash, hitEnt: Entity]
|
|
|
|
}
|
|
|