Hey,
if anyone could help id really appreciate it. Iv got the code below so that wen the avatar get near the char model Max2_MDL_001 the text "this text appears when u get near the char" appears on the screen. However when you move away from the character the text stays on the screen. I need the text to disappear once you move > 175 away from the char.
this is the code:
The code is like this:
text info1
{
pos_x = 4;
pos_y = 10;
layer = 15;
string = "";
flags = visible;
}

entity* Max2_MDL_001;

action displayinfo1
{
Max2_MDL_001 = me;
var i=1;

while(i)
{
if(vec_dist(me.x, plBiped01_entity.x) > 150)
{
wait(1);
}
else
{
info1.string = "this text appears when u get near the char";
i=0;
}
}
}