VPX Documentation
Target
3 min
variables variables are items in vpx you can set, adjust or call call detail example name(string) hashitevent(bool) if set a hit event is fired when the ball hits the drop/hit target without animation an additional dropped/raised event is fired for drop targets after the mesh animation is over collidable(bool) threshold(float) hit threshold for firing the hit event hitthreshold(float) visible(bool) material(string) image(string) texture name elasticity(float) elasticityfalloff(float) friction(float) 0 1 scatter(float) orientation(float) angle to rotate the whole target around the z axis 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) dropspeed(float) the speed how fast the drop or hit target will move raisedelay(int) defines a delay in milliseconds after the dropped target will start to raise to it's normal position isdropped(bool) can only be used for drop targets if the drop target is raised or dropped timerenabled(bool) each target has a build in timer which can be enabled by setting this to 1 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 events event detail example init timer hit dropped raised dispinterface ihittargetevents { properties methods \[id(dispid gameevents init)] void init(); \[id(dispid timerevents timer)] void timer(); \[id(dispid hitevents hit)] void hit(); \[id(dispid targetevents dropped)] void dropped(); \[id(dispid targetevents raised)] void raised(); }