G.GetWorldEntity

From GMod Wiki

Revision as of 22:07, 11 October 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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