VPX Documentation
Rubber
3min
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) thickness(int) collidable(bool) hitheight(float) defines the collision height of a rubber (default is 25 0 midpoint of a standard ball with size 50) material(string) visible(bool) enablestaticrendering(bool) if set the rubber is only rendered once (like walls) any dynamic changes later won't have an effect this is useful for static rubbers like rubbers on posts image(string) texture name elasticity(float) elasticityfalloff(float) friction(float) 0 1 scatter(float) rotx(float) angle to rotate the whole rubber around the x axis roty(float) angle to rotate the whole rubber around the y axis rotz(float) angle to rotate the whole rubber around the z axis enableshowineditor(bool) if set one cannot adjust the control points of the rubber but the rotation angles are applied to the rubber mesh in the editor reflectionenabled(bool) default=true uservalue(any) can store any user defined value for re use later on events event detail example init hit timer dispinterface irubberevents { properties methods \[id(dispid gameevents init)] void init(); \[id(dispid hitevents hit)] void hit(); \[id(dispid timerevents timer)] void timer(); }