G.GetGlobalEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax GetGlobalEntity( Var index [, Entity default] )
Where is this used?
Description:
Gets a global entity, set it with SetGlobalEntity.
Returns: Entity
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.GetGlobalEntity]G.GetGlobalEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionReads bleep and prints it
Used onNewerShared.png
Code
print(GetGlobalEntity( "bleep" ))
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox