gta.processLineOfSight

From GTA Connected
Jump to navigation Jump to search

Function Client Only All Games Online and Offline

Client 1.0.0

Map gta.processLineOfSight(Vec3 start, Vec3 end, bool checkBuildings, bool checkVehicles, bool checkPeds, bool checkObjects, bool checkDummies, bool checkSeeThroughStuff, bool ignoreSomeObjectsForCamera, [ bool ignoreShootThroughStuff = false ])

Description

The gta.processLineOfSight function is used to process a line of sight, to test if the line collides with certain features.

Parameters

Type Name Presence Default Value Description
Vec3
start
required n/a The start position.
Vec3
end
required n/a The start position.
bool
checkBuildings
required n/a Whether to test if the line collides with buildings.
bool
checkVehicles
required n/a Whether to test if the line collides with vehicles.
bool
checkPeds
required n/a Whether to test if the line collides with peds.
bool
checkObjects
required n/a Whether to test if the line collides with objects.
bool
checkDummies
required n/a Whether to test if the line collides with dummies.
bool
checkSeeThroughStuff
required n/a Whether to test if the line collides with see through stuff.
bool
ignoreSomeObjectsForCamera
required n/a Whether to ignore testing if the line collides with some objects for the camera.
bool
ignoreShootThroughStuff
optional
false
Whether to ignore testing if the line collides with shoot through stuff.

Returns

Success Returns

Type Description
Map
Results


string "entity" = Entity entityOrNil
string "position" = Vec3 hitPosition
string "normal" = Vec3 hitNormal
string "depth" = float hitDepth.

Failure Returns

Type Value
void
n/a

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

getRandomSkin
gta.getRandomSkin
gta.getSurfaceTraction
gta.processLineOfSight
gta.setDefaultInteriors
gta.setGangWeapons
gta.setIsland
gta.setIslands
gta.setSurfaceTraction
gta.showHelpBox
gta.tickCount
inPoly
platform
toColour