Entity.GetDTAngle
From GMod Wiki
Function | |
Syntax | Entity:GetDTAngle( Var Key ) |
Description: | |
Gets a DTAngle. | |
Returns: | Angle |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetDTAngle]Entity.GetDTAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the first DTAngle |
---|---|
Used on | |
Code | print(ent:GetDTAngle(0)) |
Output | Unless you've set it to something else, Angle(0,0,0). |
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.