VPX Documentation
Wall
4min
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 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(); }