---
title: Spinner
slug: spinner
description: Learn about the variables and events related to spinners in VPX. Discover how you can adjust or call variables such as name, position, timer settings, dimensions, and appearance. Dive into detailed descriptions of events like initialization, timer interac
docTags: 
createdAt: 2019-11-29T05:21:49.000Z
---

## Variables

*Variables are items in vpx you can set, adjust or call.*

| Call                     | Detail                                                                                                                                                                    | Example |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Name(string)             |                                                                                                                                                                           |         |
| X(float)                 |                                                                                                                                                                           |         |
| Y(float)                 |                                                                                                                                                                           |         |
| TimerEnabled(bool)       |                                                                                                                                                                           |         |
| TimerInterval(int)       | set interval for triggering the timer (1 equals 1000 timer calls per second, 1000 equals 1 timer call per second, -1 makes it dependent on the FPS that a user can reach) |         |
| Length(float)            |                                                                                                                                                                           |         |
| Rotation(float)          |                                                                                                                                                                           |         |
| Height(float)            |                                                                                                                                                                           |         |
| Damping(float)           | 0..1                                                                                                                                                                      |         |
| Image(string)            |                                                                                                                                                                           |         |
| Material(string)         |                                                                                                                                                                           |         |
| Surface(float)           |                                                                                                                                                                           |         |
| UserValue(any)           | can store any user defined value for re-use later-on                                                                                                                      |         |
| ShowBracket(bool)        |                                                                                                                                                                           |         |
| AngleMax(float)          |                                                                                                                                                                           |         |
| AngleMin(float)          |                                                                                                                                                                           |         |
| Elasticity(float)        |                                                                                                                                                                           |         |
| Visible(bool)            |                                                                                                                                                                           |         |
| CurrentAngle(float)      | only readable                                                                                                                                                             |         |
| ReflectionEnabled(bool)  | default=true                                                                                                                                                              |         |

## Events

| Event   | Detail                                                        | Example                                             |
| ------- | ------------------------------------------------------------- | --------------------------------------------------- |
| \_Init  | Called when item initialized , geenerally in table/game init. |                                                     |
| \_Timer | Used to interact with the spinners timer event                |                                                     |
| \_Spin  | When Spinner has spun                                         | Sub myspinner\_spin<br />'do something<br />End Sub |
| \_EOS   | At the End of the Spin                                        |                                                     |
| \_BOS   | At the Beginning of the Spin                                  |                                                     |

