So i tryed to make stones, that wenn it falls on somebody he dies, but wenn I wan`t to test it acknex crashes...

I tryed like this but it dosen`t work like I won`t to:

action combatant_enemy {//the Glorios combat enemy...
my.enable_entity = on;
my.enable_impact = on;
my.event = hit();//I gave him an event...
if (my.leader > 0) {
find_path();
set_ai_formation(my.ent_formation_id);
}

my.entity_type = type_combatant_enemy;
combatant();
return;
}

function hit()
{
if (you != null)
{
if (you.skill1 == 1357)
{
animate_ent = ptr_for_handle(my.animated_attach);
animate_ent.transparent = on;
while (1) {
animate_ent = ptr_for_handle(my.animated_attach);
animate_ent.alpha = move_variable(animate_ent.alpha,0,2);
IF (animate_ent.alpha == 0) { ent_remove(animate_ent); ent_remove(my); return; }
wait(1);
}
}
}
}

action stone
{
my.skill1 = 1357;
my.enable_entity = on;
my.enable_impact = on;
wait (1);
phent_settype(my,PH_RIGID,PH_BOX);
phent_setmass(my,65,PH_BOX);
phent_setfriction(my,90);
phent_setelasticity(my,75,100);
phent_setdamping(my,30,5);

ph_setgravity(vector(0,0,-500));
}

help please...

Last edited by Blackchuck; 08/05/09 17:19.

I have know Gamestudio/A7 Commercial Edition 7.84