I've been trying to solve this all day with no luck. I hope someone can give me some help.

These two generator actions work fine by themselves. But when used together in the same level the trapper generator comes up with an empty pointer on "you.spawned_entity = on;"

If I put the trapper generator first, it works and the indian generator has the error.

code:
--------------------------------------------------------------------------
action indian_generator
{

while(1)
{
my.invisible = on;
my.passable = on;
temp.x = my.x +30;
temp.y = my.y + 30;
temp.z = my.z;
wait(2);
you = ent_create("warrior.mdl",temp,act_warrior);
you.spawned_entity = on; //triggers stuff in the warrior action
you.entity_type_id = indian_type; //triggers unique animations

wait(-5);
}
}

action trapper_generator
{
while(1)
{
my.invisible = on;
my.passable = on;
temp.x = my.x +30;
temp.y = my.y + 30;
temp.z = my.z;
wait(2);
you = ent_create("trapper.mdl",temp,act_trapper);
you.spawned_entity = on;
you.entity_type_id = trapper_type;

wait(-15);
}
}
--------------------------------------------------------------------------

(How do we quote code in this new format??)

I've used while(!you){wait(1);} in all possible places...and a hundred other things.

Any suggestions would be greatly appreciated. Thanks