Casts a ray through 1 or all objects to check for intersection with the object. Rays are define with a start position and an end position and does not collide with backfaces, will return the number of the object hit first, or 0 for no collision. Ray casting commands are useful for calculating the collisions of bullets with levels and objects, or for representing the line of sight of an enemy to detect if they can see the player.


integer ObjectRayCast( objID, oldx, oldy, oldz, newx, newy, newz )