Garry's Mod Wiki

GetViewEntity

  Entity GetViewEntity()

Description

Returns the entity the client is using to see from (such as the player itself, the camera, or another entity).

Returns

1 Entity
The view entity.