Vector.Zero

From GMod Wiki

Jump to: navigation, search
Function
Syntax Vector:Zero( )
Description:
Sets the vector's x,y, and z to 0 (turns it into Vector(0,0,0))
Returns: nil
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vector.Zero]Vector.Zero [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes a vector, then nullifies it.
Used onNewerShared.png
Code
local myvector = Vector(-21, -21, -38)
myvector:Zero()
print( myvector )
Output0, 0, 0


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox