VPX Documentation

Trigger

4min

Variables

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

Call

Detail

Example

Name(string)





X(float)





Y(float)





Radius(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)



Enabled(bool)





Visible(bool)





TriggerShape(Shape)

0=None, 1=Wire, 2=Star



Surface(string)





UserValue(any)

- can store any user defined value for re-use later-on



HitHeight(float)





Rotation(float)





AnimSpeed(float)





WireThickness(float)

This option is only used for wire shape triggers. The thickness is a factor to scale the wire 0=normal thickness(default). To make it thicker use values like 0.5, 1, 1.5, 2...



Methods

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

Call

Detail

Example

BallCntOver(int value)





DestroyBall(int ballId)





Events

Event

Detail

Example

_Init





_Timer





_Hit





_Unhit





JS




Updated 25 Mar 2024
Doc contributor
Did this page help you?