Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...