Garry's Mod Wiki

Vector:IsZero

Vector:IsZero

  boolean Vector:IsZero()

Description

Checks whenever all fields of the vector are 0.

Returns

1 boolean
Do all fields of the vector equal 0 or not

Example

Confirm that the Vector is indeed 0.

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

Special Pages


Wikis

?

Render Time: 62ms

DB GetPage 45
Generate Html 1
SaveChanges (1) 5
Render Body 0
Render Sidebar 8