TestLineAgainstWater: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Client function}}
{{Client function}}
This function checks to see if a line between two points collides with the water. This is similar to [[processLineOfSight]], but only collides with water. Waves are taken into account when testing the line.
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool float float float testLineAgainstWater ( float startX, float startY, float startZ, float endX, float endY, float endZ )
bool float float float testLineAgainstWater ( float startX, float startY, float startZ, float endX, float endY, float endZ )
</syntaxhighlight>
</syntaxhighlight>

Revision as of 01:50, 15 November 2007

This function checks to see if a line between two points collides with the water. This is similar to processLineOfSight, but only collides with water. Waves are taken into account when testing the line.

Syntax

bool float float float testLineAgainstWater ( float startX, float startY, float startZ, float endX, float endY, float endZ )