I played around with the placing of the code and found even with only the pan_create outside the while loop, the panel was created only above one of the enemy. No luck there Joozey.

I think I figured it out

I define a panel globally

PANEL* panel;

Then each entity creates the same panel overwriting the other entity before it so only the last one has the panel following them.

So what I need is a way to create a panel for each enemy so the others do not steal his panel.

I think perhaps I will convert my script to lite-C and use structures before things get messy smile