Entity.Respawn
From GMod Wiki
Revision as of 23:15, 27 September 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax | Entity:Respawn( ) |
Description: | |
Re-spawns an entity. This is used to (Assumed) respawn broken objects, or reset the position of a prop to it's pre-spawn position like in Deathmatch. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.Respawn]Entity.Respawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Unlike Entity:Spawn, Entity:Respawn is serverside only.
- When used on a weapon it will create a copy of itself at position (0,0,0).
- When used on an item like a healthkit it will return to the position where it was spawned.
- Both the moved and created entities will appear to be invisible and can not be used for a set time.
- Entities emit a sound when becoming visible.
- Holding an entity with the physgun as it respawns will crash the game.
- The respawned entity won't retain the properties of the first (I.E. The color)