text info1
{
pos_x = 4;
pos_y = 10;
layer = 15;
string = "Please let this work!!";
flags = visible;
}
entity* nonmovingentity;
action displayinfo1_player
{
nonmovingentity = me;
while(!nonmovingentity)
{
wait(1);
}
while(1)
{
if(vec_dist(nonmovingentity.x, player.x) > 20)
{
wait(1);
}
else
{
info1.string:
}
}
}
This is what I now have in the code. It runs but a meassage comes up saying
"empty pointer in displayinfo1_player" I click ok twice and it goes away.
do you know whats wrong here.
And just to clarify...is nonmovingentity a predefined name for all characters that dont move?? and is player a predefined name for the avatar of the game??
because in the code above i put "action displayinfo1_player" and i'm not sure if player is supposed to be put there??