I will give you a few lines to work with. Lets see if you can figure it out
SetEntityPlayerLookAtCallback("", "EnemyLookAtDisappear", false);
void EnemyLookAtDisappear(string &in asEntity, int alState)
{
if(alState == 1)
{
}
if(alState == -1)
{
}
}
AddTimer("EnemyDisappearTimer", 2, "EnemyDisappearTimer");
RemoveTimer("EnemyDisappearTimer");
SetEntityActive("Enemy", false);
void EnemyDisappearTimer(string &in asTimer)
{
}
Also, this should've been posted in Development support.
http://www.frictionalgames.com/forum/forum-39.html
Remember that next time
Trying is the first step to success.