Vector.Zero
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Vector.Zero]Vector.Zero [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Makes a vector, then nullifies it. |
|---|---|
| Used on | |
| Code | local myvector = Vector(-21, -21, -38) myvector:Zero() print( myvector ) |
| Output | 0, 0, 0 |
Additional Notes
- This function will modify the original vector.