Garry's Mod Wiki

Vector:Set

  Vector:Set( Vector vector )

Description

Copies the values from the second vector to the first vector.

Arguments

1 Vector vector
The vector to copy from.

Example

Sets vector B to vector A's value.

a = Vector(1, 2, 3) b = Vector() b:Set(a) print(b)
Output: 1, 2, 3.