Vector/IsZero

From Garry's Mod
Jump to: navigation, search
 Vector:IsZero( )

Contents

Description

Checks whenever all fields of the vector are 0.

Returns

boolean

Do all fields of the vector equal 0 or not

Examples

Example

Confirm that the Vector is indeed 0.

a = Vector(0, 0, 0)
print(a:IsZero())

Output:

true
Personal tools
Navigation