G.GetWorldEntity
From GMod Wiki
| Function | |
| Syntax |
GetWorldEntity( ) Where is this used? |
| Description: | |
| Always returns Entity [0] worldspawn | |
| Returns: | Entity |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.GetWorldEntity]G.GetWorldEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Gets the worldspawn entity. |
|---|---|
| Used on | |
| Code | print(GetWorldEntity()) |
| Output | Entity [0] worldspawn |