Garry's Mod Wiki
Description
Returns whether the target/given entity is visible from the this entity.
This is meant to be used only with NPCs.
Differences from a simple trace include:
- If target has
FL_NOTARGET, returnsfalse - If
ai_ignoreplayersis turned on and target is a player, returnsfalse - Reacts to
ai_LOS_mode: -
- If
1, does a simple trace withCOLLISION_GROUP_NONEandMASK_BLOCKLOS
- If
-
- If not, does a trace with
MASK_BLOCKLOS_AND_NPCS(-CONTENTS_BLOCKLOSis target is player) and a custom LOS filter (CTraceFilterLOS)
- If not, does a trace with
- Returns
trueif hits a vehicle the target is driving
Arguments
Returns
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...