Scripting/Client/Functions/IsLineOfSightClear
False if a building/vehicle/ped blocks the line.
Syntax
IsLineOfSightClear(x1, y1, z1, x2, y2, z2)Arguments
- float x1
- float y1
- float z1
- float x2
- float y2
- float z2
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.
Related pages
- GetScreenWidth
- WorldPosToScreen
- ScreenPosToWorld
- GetGroundZLevel
- GetGroundZLevelForPos
- GetGroundZLevelForPosLoad
- Draw3DText
- Draw3DSprite
- Draw3DTextWorld
- Draw3DSpriteWorld
- SetCameraMatrix
- SetCameraTarget
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera