Worldprobe::startShapeTestLosProbe: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Returns a ray (?) going from x1, y1, z1 to x2, y2, z2.<br>entity = 0 most of the time.<br>p8 = 7 most of the time.<br><br>Result of this function is passed to WORLDPROBE::_GET_RAYCAST_RESULT as a first argument.
Returns a ray (?) going from x1, y1, z1 to x2, y2, z2.<br>entity = 0 most of the time.<br>p8 = 7 most of the time.<br><br>Result of this function is passed to WORLDPROBE::_GET_RAYCAST_RESULT as a first argument.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">worldprobe.startShapeTestLosProbe(x1, y1, z1, x2, y2, z2, flags, entity, p8);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.worldprobe.startShapeTestLosProbe(x1, y1, z1, x2, y2, z2, flags, entity, p8);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x1:''' float
*'''x1:''' float
Line 16: Line 16:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Worldprobe_function_c}}
{{Worldprobe_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:35, 6 May 2017

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

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

// todo

See also

Template:Worldprobe s function c