---
title: Timer
slug: timer
description: Learn about the variables and events in VPX, including Name, Enabled, Interval, and UserValue. Find out how to set, adjust, or call these variables. Although specific details about the Timer and Init events are not provided in this document, get insights 
docTags: 
createdAt: 2019-11-29T05:23:52.000Z
---

## Variables

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

| Call            | Detail                                                                                                                                                                    | Example |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Name(string)    |                                                                                                                                                                           |         |
| Enabled(bool)   |                                                                                                                                                                           |         |
| Interval(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) |         |
| UserValue(any)  | can store any user defined value for re-use later-on                                                                                                                      |         |

## Events

| Event   | Detail | Example |
| ------- | ------ | ------- |
| \_Timer |        |         |
| \_Init  |        |         |

```javascript
        dispinterface ITimerEvents
        {
        properties:
        methods:
                [id(DISPID_TimerEvents_Timer)]  void Timer();
                [id(DISPID_GameEvents_Init)]  void Init();
        }
```

