Garry's Mod Wiki

Player:SetViewEntity

  Player:SetViewEntity( Entity viewEntity )

Description

Attaches the players view to the position and angles of the specified entity.

Arguments

1 Entity viewEntity
The entity to attach the player view to.