Player.GetLocation
From GMod Wiki
| Gamemode Function: Player.GetLocation | |
|---|---|
| Player.GetLocation is a function that is defined in the Sandbox Gamemode and its derivatives. | |
| Function | |
| Syntax | Player:GetLocation( ) |
| Description: | |
| Gets the player's Location defined in client ConVar cl_location | |
| Returns: | String |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetLocation]Player.GetLocation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prints the Location of the player 1 |
|---|---|
| Used on | |
| Code | pl=player.GetByID(1) print(pl:GetLocation()) |
| Output | Number 1 Player's Location address |
Additional Notes
- Can only be used in Sandbox gamemode as it's defined there (or if you derive from it)