Entity.Spawn
From GMod Wiki
Function | |
Syntax | Entity:Spawn( ) |
Description: | |
Spawns an entity that has not been spawned yet. This is usually the last command used when creating entities. Commands run between ents.Create and Entity:Spawn are usually used to prepare the entity to be spawned. Spawn will make the entity enter the world so to speak. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.Spawn]Entity.Spawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Depending on the type of entity you're spawning you may need to perform actions on it immediately after it's spawned, such as activating it, turning it on, "waking" it (in the case of physics objects) or other such things.
- You can also spawn players with this.