Scripting/Client/Functions/ProcessLineOfSight

Ray cast. Returns a table {Hit, Pos={x,y,z}, Entity} where Entity is a Player/Vehicle handle when the ray hit one, otherwise null. The six optional bools choose what the ray can hit.

Syntax

ProcessLineOfSight(start, end [, buildings, vehicles, peds, objects, dummies, seeThrough])

Arguments

Example

function onScriptLoad()
{
	ProcessLineOfSight( 0, 0 );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Screen, world and camera

Categories: Client functions | Screen, world and camera