game.CleanUpMap
From GMod Wiki
Function | |
Syntax |
game.CleanUpMap( Boolean dontSendToClients, Table ExtraFilters ) Where is this used? |
Description: | |
Reverts the map back to how it was when it was loaded | |
Returns: | nil |
Part of Library: | Game |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Game.CleanUpMap]Game.CleanUpMap [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- ExtraFilters is a table of entity classes you want to include that won't be touched.
- This does not clean up ropes where both ends of the rope is attached to the world, because they are only client-side effects.