Player.SpectateEntity
From GMod Wiki
Function | |
Syntax | Player:SpectateEntity( Entity ) |
Description: | |
Sets the entity the player is spectating | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SpectateEntity]Player.SpectateEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | This will make the player spectate the entity passed to the function. |
---|---|
Used on | |
Code | function spectate(ply, ent) ply:Spectate(4) ply:SpectateEntity(ent) end |
Output | N/A |