Перейти к содержанию

Worldprobe::startShapeTestLosProbe

Материал из RAGE MP Wiki Archive
Версия от 21:35, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.worldprobe.startShapeTestLosProbe(x1, y1, z1, x2, y2, z2, flags, entity, p8);</syntaxhighlight>

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

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

Шаблон:Worldprobe s function c