Player.UnSpectate
From GMod Wiki
Function | |
Syntax | Player:UnSpectate( ) |
Description: | |
Make a player not spectate any more. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.UnSpectate]Player.UnSpectate [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | This will take whatever player is passed to the function un_spectate out of spectate mode. |
---|---|
Used on | |
Code | function un_spectate(ply) ply:UnSpectate() end |
Output | N/A |
Additional Notes
- Can use entity.SetPos to set the location of where the player will be placed when player.UnSpectate is run.
- Remember to spawn the player with Entity.Spawn for this to take effect