Garry's Mod Wiki

SetGlobalEntity

  SetGlobalEntity( any index, Entity ent )

Description

Defines an entity to be automatically networked to clients

Running this function clientside will only set it clientside for the client it is called on!

Arguments

1 any index
Index to identify the global entity with
2 Entity ent
Entity to be networked