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
- any start
- any end
- any buildings (optional)
- any vehicles (optional)
- any peds (optional)
- any objects (optional)
- any dummies (optional)
- any seeThrough (optional)
Example
function onScriptLoad()
{
ProcessLineOfSight( 0, 0 );
}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