Pathfind::getSafeCoordForPed

From RAGE Multiplayer Wiki
Revision as of 19:46, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

When onGround == true outPosition is a position located on the nearest pavement.

When a safe coord could not be found the result of a function is false and outPosition == Vector3.Zero.

In the scripts these flags are used: 0, 14, 12, 16, 20, 21, 28. 0 is most commonly used, then 16.

16 works for me, 0 crashed the script.==Syntax==

pathfind.getSafeCoordForPed(x, y, z, onGround, outPosition, flags);

=== Required Arguments ===*x: float*y: float*z: float*onGround: Boolean*outPosition: Vector3*flags: int===Return value===*Vector3==Example==

todo

==See also==Template:Pathfind function c