Hi I'm trying to place my target image at the position of the enemy.. the enemy has a pointer called "target_enemy" the target image sis an entity not a image/panel.

the target circle is created by the player when he is created

Quote:
proc_local(my,local_activities);

Quote:
function local_activities()//WARNING "You can only have one local procedure running on a client per entity at a time"
{
handle_animation(); // do my animation locally
ent_createlocal(arrow_circle_tga,my.x,target_circle);
}


Here is the target circles function.

Quote:
FUNCTION target_circle {

my.facing = on;
my.passable = on;
my.bright = on;
proc_late();
WHILE(1)
{
if(target_exists == 1)
{
vec_set(my.x,target_enemy.x);
}
wait(1);
}
}


why doesnt the position of the target circle chnge when the target_enemy pointer is assined to the enemy? (i know the enemy gets the pointer because i have told my player entity to look toward the "target_enemy" and that works)
(please note that this is -sv & -cl game not a -sv -cl & -cl game if you know what I mean)
What could be wrong?

Last edited by RyuShinji; 02/15/09 13:10.