Garry's Mod Wiki

Revision Difference

Entity:IsLineOfSightClear#518565

<function name="IsLineOfSightClear" parent="Entity" type="classfunc"> <description>Returns true if the target is in line of sight. This will only work on CBaseCombatCharacter entities.</description> <realm>Shared</realm> <file_name>src/garrysmod/Objects/lua_entity.cpp</file_name> <file_line>5337</file_line> <args> <arg name="target" type="Vector">The target to test. You can also supply an &lt;page&gt;Entity&lt;/page&gt; instead of a &lt;page&gt;Vector&lt;/page&gt;</arg>⤶ <arg name="target" type="Vector">The target to test. You can also supply an <page>Entity</page> instead of a <page>Vector</page></arg>⤶ </args> <rets> <ret name="" type="boolean">Returns true if the line of sight is clear</ret> </rets> </function>