G.GetWorldEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax GetWorldEntity( )
Where is this used?
Description:
Always returns Entity [0] worldspawn
Returns: Entity
Part of Library: Global Functions
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.GetWorldEntity]G.GetWorldEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the worldspawn entity.
Used onNewerServer.png
Code
print(GetWorldEntity())
OutputEntity [0] worldspawn
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox