Skip to main content

Worldprobe::startShapeTestLosProbe

Returns a ray (?) going from x1, y1, z1 to x2, y2, z2. entity = 0 most of the time. p8 = 7 most of the time.

Result of this function is passed to WORLDPROBE::_GET_RAYCAST_RESULT as a first argument.

Syntax

```js mp.game.worldprobe.startShapeTestLosProbe(x1, y1, z1, x2, y2, z2, flags, entity, p8); ```

Required Arguments

  • x1: float
  • y1: float
  • z1: float
  • x2: float
  • y2: float
  • z2: float
  • flags: int
  • entity: Entity handle or object
  • p8: int

Return value

  • int

Example

```js // todo ```

See also