IsLookingAt( <entity> )


Module: Player

Summary:

Returns true if the entity is the same as the player's lookat entity



Call this on:

The player



Example:

level.player IsLookingAt( trigger );



Required Args:

  • 1 : <entity>: An entity.