Vector.Add
From GMod Wiki
Function | |
Syntax | Vector:Add( Vector vec ) |
Description: | |
Will add two vectors | |
Returns: | nil |
In Object: | Vector |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Vector.Add]Vector.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Adds a vector to another vector. |
---|---|
Used on | |
Code | local vec1 = Vector(1,2,3) local vec2 = Vector(4,5,6) vec1:Add(vec2) print(vec1) |
Output | A Vector of 5.0000 7.0000 9.0000 |