put that thinks into a function;
Code:
ph_setgravity(temp); // set gravity...crashes if i do this in main :/
phent_settype(my, PH_RIGID, PH_BOX);
phent_setmass(my, 2.0, PH_POLY);
phent_setfriction(my, 80); //play with this
phent_setelasticity(my, 1, 25); //play with this
phent_setdamping(me,20,40); //play with this
wait(-3); // let gravity kick in...works on manual entities, but not ent_created for some reason
phent_enable(my,0); /// disable physics on this entity until apply_physics is triggered