Garry's Mod Wiki

Revision Difference

Player:SetViewEntity#568299

<function name="SetViewEntity" parent="Player" type="classfunc"> <description>Attaches the players view to the position and angles of the specified entity.</description>⤶ <description>Attaches the players view to the position and angles of the specified entity. <note>By default, the view is in first person and its model will not be rendered. <page>Player:SetObserverMode</page> can be used to enable drawing of view entity.</note>⤶ </description>⤶ <realm>Server</realm> <args> <arg name="viewEntity" type="Entity">The entity to attach the player view to.</arg> </args> </function>