Entity.SetDTEntity
From GMod Wiki
Function | |
Syntax | Entity:SetDTEntity( Var Key, Entity Value ) |
Description: | |
Sets a DTEntity. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetDTEntity]Entity.SetDTEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Sets the first DTEntity to Entity(3) |
---|---|
Used on | |
Code | ent:SetDTEntity(0,Entity(3)) |
Output | N/A |
Additional Notes
- Key can be a string that corresponds to the name of the DTVar given at creation, or an integer indicating the ID of the DTVar, according to the order the vars were created in.