Add Operator
From GMod Wiki
__add is a type of overloaded operator. You might have noticed that some objects have a function called __add. Well, you don't run __add like this - You run __add by typing the name of the object, a plus sign (+) and the name of another object.
Example
For example, you can add vectors:
Description | Adds two vectors |
---|---|
Used on | |
Code | myVector=Vector(1,1,1)+Vector(2,2,2) |
Output | myVector becomes vector equal to Vector(3,3,3) |