kind of big breakthrough here

function TeleportGun()
{
var theTarget;
c_trace(my.x, theTarget.x, ignore_me + scan_texture);
draw_text(tex_name,200,30,vector(100,100,255));
if(str_cmpi(tex_name, "SQUARE.MDL") == 1)
{
my.x = 100;
my.y = 100;
my.z = 100;
}
}


when i shoot the square model i have it teleports me to 100,100,100

HOWEVER, it only works if i shoot a certain side of object, i have no idea why.