G.SetGlobalEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax SetGlobalEntity( Var index, Entity value )
Where is this used?
Description:
Similiar to the function Entity:SetNetworkedEntity - Sets a networked Entity , but outside of the entity.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SetGlobalEntity]G.SetGlobalEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets 2 global entities which you can later get with GetGlobalEntity.
Used onNewerServer.png
Code
SetGlobalEntity( 1337, Entity( 1337 ) )
SetGlobalEntity( "SomeProp", ents.FindByClass( "prop_physics" )[1] )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox