Garry's Mod Wiki

Revision Difference

Player:Spectate#527976

<function name="Spectate" parent="Player" type="classfunc"> <description>Starts spectate mode for given player. This will also affect the players movetype in some cases.</description>⤶ <description>⤶ Starts spectate mode for given player. This will also affect the players movetype in some cases.⤶ ⤶ <bug issue="4608">Using this function while spectating the player's own ragdoll will cause it to teleport it to the center of the map. You will spectate the ragdoll even after it's been teleported. This only happens on the client of the player spectating the ragdoll and is purely client-side.</bug>⤶ </description>⤶ <realm>Server</realm> <args> <arg name="mode" type="number">Spectate mode, see <page>Enums/OBS_MODE</page>.</arg> </args> </function>