Garry's Mod Wiki

Revision Difference

properties.CanBeTargeted#512975

<function name="CanBeTargeted" parent="properties" type="libraryfunc">⤶ <description>⤶ Returns true if given entity can be targeted by the player via the properties system.⤶ ⤶ This should be used serverside in your properties to prevent abuse by clientside scripting.⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="ent" type="Entity">The entity to test</arg>⤶ <arg name="ply" type="Player">If given, will also perform a distance check based on the entity&#x27;s Orientated Bounding Box.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">True if entity can be targeted, false otherwise</ret>⤶ </rets>⤶ </function>⤶ ⤶