Entity.SetDTVector
From GMod Wiki
| Function | |
| Syntax | Entity:SetDTVector( Var Key, Vector Value ) |
| Description: | |
| Sets a DTVector. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetDTVector]Entity.SetDTVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Sets the first DTVector to Vector(1,2,3) |
|---|---|
| Used on | |
| Code | ent:SetDTVector(0,Vector(1,2,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.