Scripting/Client/Functions/IsLineOfSightClear

False if a building/vehicle/ped blocks the line.

Syntax

IsLineOfSightClear(x1, y1, z1, x2, y2, z2)

Arguments

Returns

bool

Example

function onScriptLoad()
{
	local result = IsLineOfSightClear( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 );
	MessagePlayer( "IsLineOfSightClear returned: " + result, player );
}

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