duplicator.RegisterEntityModifier
From GMod Wiki
| Function | |
| Syntax |
duplicator.RegisterEntityModifier( String type, Function callback ) Where is this used? |
| Description: | |
| register a function to be applied when an entity is duplicated if it has the modifier type. | |
| Returns: | nil |
| Part of Library: | duplicator |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Duplicator.RegisterEntityModifier]Duplicator.RegisterEntityModifier [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The Callback function is called when the entity is duplicated and should work on any entity, this is useful for setting a persistent change in state.