VPX Documentation
Bumper
4min
variables variables are items in vpx you can set, adjust or call call detail example name(string) capmaterial(string) basematerial(string) skirtmaterial(string) radius(float) default=45 0 heightscale (float) default=90 0 orientation(float) ringdropoffset(float) an offset to influence the ring animation the default move down limit is calculated by (heightscale 0 5) table scalez the final move down limit is calculated by ringdropoffset + (heightscale 0 5) table scalez for example if the ring is moving too far down you have to try to set the ringdropoffset to 10 ringspeed(float) x(float) x position y(float) y position surface(string) force(float) threshold(float) scatter(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) uservalue(any) can store any user defined value for re use later on capvisible(bool) default=true basevisible(bool) default=true reflectionenabled(bool) default=true enableskirtanimation(bool) default=true, en/disables the skirt animation of a bumper, for example if something external is triggering the bumper (i e no ball contact with the skirt) hashitevent(bool) collidable(bool) methods methods are procedures or actions that you can fire in vpx call detail example playhit() if called the bumper will play the hit animation without triggering the actual hit event events event detail example init timer hit dispinterface ibumperevents { properties methods \[id(dispid gameevents init)] void init(); \[id(dispid timerevents timer)] void timer(); \[id(dispid hitevents hit)] void hit(); }