yes, but when i wrote my answer your answer was not there yet
User01, try it like this
void OnStart()
{
SetLocalVarInt("message", 0);
SetEntityPlayerInteractCallback("Object", "function1", false);
}
bool showMessage = true;
void function1(string &in asEntity)
{
if(showMessage){
if(GetLocalVarInt("message") == 1)
{
showMessage = false;
SetMessage("Category", "Entry2", 2);
AddTimer("", 2, "messagedone");
}
else
{
showMessage = false;
SetMessage("Category", "Entry1", 2);
AddTimer("", 2, "secondmessage");
}
}
}
void secondmessage(string &in asTimer)
{
SetMessage("Category", "Entry2", 2);
AddLocalVarInt("message", 1);
AddTimer("", 2, "messagedone");
}
void messagedone(string &in asTimer)
{
showMessage = true;
}