hi i'm arash
i'm from turkey and can't speaking engilesh well.
i have a script:
var video_mode=7;
var video_depth=32;
var video_screen =1;
var video_gamma=10;
var earthgravity[3] = 0,0, -386;
var earthgravity1[3]=0,0,0;
ENTITY* mycrate;
///////////////////////////////////////////
action ball{
my.ENABLE_IMPACT = ON;
phent_settype(my,Ph_Rigid,PH_SPHERE);
phent_setmass(my,100,PH_SPHERE);
ph_setgravity(earthgravity);
sleep(1);
}
///////////////////////////////////////////
action plane{
my.ENABLE_IMPACT = ON;
my.invisible=on;
mycrate=me;
phent_settype( myCrate,PH_RIGID,PH_BOX);
phent_setmass(my,0,PH_box);
}
///////////////////////////////////////////
font arial_font = "Arial", 1, 18; // true type, Arial, bold, size = 18
PANEL aircraft_pan
{
pos_x =4;
pos_y =4;
digits=0,0,2,arial_font, 1,sys_hours);
digits=20,0,2,arial_font, 1,sys_minutes);
digits=40,0,2,arial_font, 1,sys_seconds);
digits=750,0,5,arial_font,1,time_physics;
flags =VISIBLE;
}
//////////////////////////////////////
function main()
{
level_load("ball_level.wmb");
wait(1);
/////CAMERA/////
fps_max=50;
while (1)
{
mouse_pos.x = pointer.x;
mouse_pos.y = pointer.y;
camera.pan -= mouse_force.x;
camera.tilt += mouse_force.y;
wait(1);
}
}
/////////////////////////////////////
but this is don't working!
my boxies in this picture can;t move and stoped in air!
thank you!