---
title: Ramp
slug: ramp
description: Discover a comprehensive list of variables and events associated with ramps in vpx. From name and dimensions to type and visibility, explore properties that define these crucial elements. Unveil an initialization event and gain insights into the timer eve
docTags: 
createdAt: 2019-11-29T05:21:33.000Z
---

## Variables

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

| Call                               | Detail                                                                         | Example |
| ---------------------------------- | ------------------------------------------------------------------------------ | ------- |
| Name(string)                       |                                                                                |         |
| HeightBottom(float)                |                                                                                |         |
| HeightTop(float)                   |                                                                                |         |
| WidthBottom(float)                 |                                                                                |         |
| WidthTop(float)                    |                                                                                |         |
| Type(RampType)                     | 0=Flat, 1=4Wire, 2=2Wire, 3=3WireLeft, 4=3WireRight, 5=Wire                    |         |
| Image(string)                      | texture name                                                                   |         |
| ImageAlignment(RampImageAlignment) | 0=ImageModeWorld, 1=ImageModeWrap                                              |         |
| HasWallImage(bool)                 | apply image to walls                                                           |         |
| LeftWallHeight(float)              |                                                                                |         |
| RightWallHeight(float)             |                                                                                |         |
| UserValue(any)                     | can store any user defined value for re-use later-on                           |         |
| VisibleLeftWallHeight(float)       |                                                                                |         |
| VisibleRightWallHeight(float)      |                                                                                |         |
| Elasticity(float)                  |                                                                                |         |
| HasHitEvent(bool)                  | enables the support for a hit event in the script (it's the same as for walls) |         |
| Threshold(float)                   | hit threshold for firing the hit event                                         |         |
| Collidable(bool)                   |                                                                                |         |
| Visible(bool)                      |                                                                                |         |
| Friction(float)                    | 0..1                                                                           |         |
| Scatter(float)                     |                                                                                |         |
| ReflectionEnabled(bool)            | default=true                                                                   |         |

## Events

| Event     | Detail             | Example |
| --------- | ------------------ | ------- |
| \_Init    |                    |         |
| (\_Timer) | CURRENTLY DISABLED |         |
|           |                    |         |

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

