VPX Documentation
Gate
4min
variables variables are items in vpx you can set, adjust or call call detail example name(string) x(float) y(float) length(float) height(float) rotation(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) open(bool) material(string) elasticity(float) surface(string) uservalue(any) can store any user defined value for re use later on closeangle(float) openangle(float) collidable(bool) friction(float) 0 1 damping(float) how quickly the gate's momentum dissipates high values with low gravity factor will seem like they don't move freely high values with high gravity factor will move very rapidly visible(bool) showbracket(bool) currentangle(float) only readable, it returns the current open angle gravityfactor(float) how "heavy" the gate is usually between 1 3 use this in combination with adjusting the damping value to get appropriate swinging action methods methods are procedures or actions that you can fire in vpx call detail example move(int dir, float speed, float angle) dir(0/1) events event detail example init timer hit eos bos dispinterface igateevents { properties methods \[id(dispid gameevents init)] void init(); \[id(dispid timerevents timer)] void timer(); \[id(dispid hitevents hit)] void hit(); \[id(dispid limitevents eos)] void limiteos( \[in] float parm); \[id(dispid limitevents bos)] void limitbos( \[in] float parm); }