---
title: Wall
slug: wall
description: Learn about the variables, methods, and events associated with walls in VPX in this comprehensive document. Explore the various settings available for customization, including name, timer interval, image, colors, and more. Discover essential methods like 
docTags: 
createdAt: 2019-11-29T05:22:23.000Z
---

## Variables

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

| Call                                 | Detail                                                                                                                                                                    | Example |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Name(string)                         |                                                                                                                                                                           |         |
| 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) |         |
| HasHitEvent(bool)                    |                                                                                                                                                                           |         |
| Threshold(float)                     |                                                                                                                                                                           |         |
| Image(string)                        | texture name                                                                                                                                                              |         |
| SideColor(OLE\_COLOR)                |                                                                                                                                                                           |         |
| HeightBottom(float)                  |                                                                                                                                                                           |         |
| HeightTop(float)                     |                                                                                                                                                                           |         |
| FaceColor(OLE\_COLOR)                |                                                                                                                                                                           |         |
| CanDrop(bool)                        |                                                                                                                                                                           |         |
| Collideable(bool)                    |                                                                                                                                                                           |         |
| IsBottomSolid(bool)                  |                                                                                                                                                                           |         |
| IsDropped(bool)                      |                                                                                                                                                                           |         |
| DisplayTexture(bool)                 |                                                                                                                                                                           |         |
| Elasticity(float)                    |                                                                                                                                                                           |         |
| SideImage(string)                    |                                                                                                                                                                           |         |
| Visible(bool)                        |                                                                                                                                                                           |         |
| Disabled(bool)                       |                                                                                                                                                                           |         |
| SideVisible(bool)                    |                                                                                                                                                                           |         |
| UserValue(any)                       | can store any user defined value for re-use later-on                                                                                                                      |         |
| SlingshotColor(OLE\_COLOR)           |                                                                                                                                                                           |         |
| SlingshotThreshold(float)            |                                                                                                                                                                           |         |
| SlingshotAnimation(bool)             |                                                                                                                                                                           |         |
| FlipbookAnimation(bool)              |                                                                                                                                                                           |         |
| Friction(float)                      | 0..1                                                                                                                                                                      |         |
| Scatter(float)                       |                                                                                                                                                                           |         |
| ReflectionEnabled(bool)              | default=true                                                                                                                                                              |         |
| DisableLighting(bool)                |                                                                                                                                                                           |         |
| BlendDisableLighting(float)          | 0..1, same as DisableLighting, but can blend between the two extremes                                                                                                     |         |
| BlendDisableLightingFromBelow(float) | 0..1, similar to DisableLighting, but will block light coming from below (e.g. from light elements)                                                                       |         |

## Methods

*Methods are procedures or actions that you can fire in VPX.*

| Call               | Detail                                                                                                                           | Example |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------- | ------- |
| PlaySlingshotHit() | if the wall has slingshots defined, a call to this function will play the hit animation without triggering the actual hit event. |         |

## Events

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

```javascript
      dispinterface IWallEvents
        {
        properties:
        methods:
                [id(DISPID_GameEvents_Init)]  void Init();
                [id(DISPID_HitEvents_Hit)]  void Hit();
                [id(DISPID_SurfaceEvents_Slingshot)]  void Slingshot();
                [id(DISPID_TimerEvents_Timer)]  void Timer();
        }
```

