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.