#include <acknex.h>
#include <default.c>
VECTOR youpos;
PANEL* youDebug =
{
digits = 0,0,"x= %.0f",*,1,youpos.x;
digits = 0,10,"y= %.0f",*,1,youpos.y;
digits = 0,20,"z= %.0f",*,1,youpos.z;
flags = VISIBLE;
}
action static_model ()
{
c_setminmax(me);me.scale_x = 10;me.scale_y = 10;
}
void main ()
{
level_load("");wait(2);
ph_setgravity (vector(0,0,-300));
vec_set(camera.x,vector(-2772,4069,-2597));camera.pan=300;
ent_create ("plane.mdl",vector(0,0,-4000),static_model);
you=ent_create ("ph_sphere.mdl",nullvector,NULL);
phent_settype (you,PH_RIGID,PH_SPHERE);
phent_setmass (you,60,PH_SPHERE);
while (1)
{
vec_set(youpos,you.x);
wait(1);
}
}