TestLineAgainstWater

From Multi Theft Auto: Wiki
Revision as of 01:50, 15 November 2007 by EAi (talk | contribs)
Jump to navigation Jump to search

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 )