Vector.Add

From GMod Wiki

Jump to: navigation, search
Function
Syntax Vector:Add( Vector vec )
Description:
Will add two vectors
Returns: nil
In Object: Vector
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vector.Add]Vector.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds a vector to another vector.
Used onNewerShared.png
Code
local vec1 = Vector(1,2,3)
local vec2 = Vector(4,5,6)
vec1:Add(vec2)
print(vec1)
 
OutputA Vector of 5.0000 7.0000 9.0000
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox