Worldprobe::startShapeTestCapsule: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Raycast from point to point, where the ray has a radius. <br><br>flags:<br>vehicles=10<br>peds =12<br><br>Iterating through flags yields many ped / vehicle/ object combinations<br><br>p9 = 7, but no idea what it does<br><br>Entity is an entity to ignore | Raycast from point to point, where the ray has a radius. <br><br>flags:<br>vehicles=10<br>peds =12<br><br>Iterating through flags yields many ped / vehicle/ object combinations<br><br>p9 = 7, but no idea what it does<br><br>Entity is an entity to ignore | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">worldprobe.startShapeTestCapsule(x1, y1, z1, x2, y2, z2, radius, flags, entity, p9);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.worldprobe.startShapeTestCapsule(x1, y1, z1, x2, y2, z2, radius, flags, entity, p9);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''x1:''' float | *'''x1:''' float | ||
| Line 17: | Line 17: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{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
Raycast from point to point, where the ray has a radius.
flags:
vehicles=10
peds =12
Iterating through flags yields many ped / vehicle/ object combinations
p9 = 7, but no idea what it does
Entity is an entity to ignore
Syntax
mp.game.worldprobe.startShapeTestCapsule(x1, y1, z1, x2, y2, z2, radius, flags, entity, p9);
Required Arguments
- x1: float
- y1: float
- z1: float
- x2: float
- y2: float
- z2: float
- radius: float
- flags: int
- entity: Entity handle or object
- p9: int
Return value
- int
Example
// todo