action Secondary_Action()
{ wait(1); //optional pause to let primary action finish "setting up"
while(me)
{
//do score tracking stuff ??
wait(1);
}
}
action Primary_Action()
{
Secondary_Action(); //This will use the ME pointer, as it is NOW
//
while(me)
{
//do entity movement stuff ??
if(my.LifePoints < 1) ent_remove(me);
wait(1);
}
}
...
// ent_create in some function OR Primary_Action assigned in WED
ent_create("p1.mdl", nullvector, Primary_Action);
...