Hi there!
Can anyone please help me? When I assign this action to only ONE entity, it works absolutely fine. But when i add other objects with the same action attached, the other ones do not react to the gravity (given by temp). How can I make the vector "temp" unique for each one? I think that is the problem...
var barrel_entity;
action barrel
{
barrel_entity = me;
c_setminmax(me);
my.shadow=on;
phent_settype(my,ph_rigid,PH_BOX);
phent_setmass(my,40,ph_cylinder);
phent_setfriction(my,100);
phent_setdamping(my,40,40);
phent_setelasticity(my,30,30);
while(1)
{
temp.x= 0;
temp.y= 0;
temp.z= -6000;
phent_addcentralforce( barrel_entity, temp );
wait(1);
}
Thank you!
Last edited by CD_saber; 06/11/08 18:26.