Code:
entity sphere*;
var grav_force=1;//or 10 or 100 or 20.5 or 2500 or ...
action sphere//assign spheremodel to it
{
sphere=my;
}
action theothermodels //assign models affected by faked spheregravity to it
{
//
//phent_settype and all the usual physics setting stuff
//
var sphere_pos[3];
var grav_vec[3];
while(1){
vec_set(sphere_pos,sphere.x);
vec_diff(grav_vec, sphere_pos.x, my.x);
vec_normalize(grav_vec,grav_force);
phent_addcentralforce ( my, grav_vec );
wait(1);}
}