Garry's Mod Wiki

SetGlobal2Entity

  SetGlobal2Entity( 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