Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display text message until...
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#6
RE: Display text message until...

In this case use my method I mentioned earlier =D

It nearly works the same as Andy's except that there's a LocalInt involved.

void OnStart()

{
SetEntityPlayerInteractCallback("NAME_OF_DOOR", "FUNC", false);
AddUseItemCallback("", "NAME_OF_NEEDLE", "NAME_OF_DOOR", "FUNC_2", true);
SetLocalVarInt("INT_NAME", 0);
}



void FUNC(string &in asEntity)

{
if(GetLocalVarInt("INT_NAME")==0)
{
SetMessage("NAME_OF_TEXT_CATEGORY", "NAME_OF_TEXT_ENTRY", 0);
}
}



void FUNC_2(string &in NAME_OF_NEEDLE, string &in NAME_OF_DOOR)

{
SetSwingDoorLocked("NAME_OF_DOOR", false, false);
AddLocalVarInt("INT_NAME", 1);
}
(This post was last modified: 07-28-2012, 12:51 AM by Kreekakon.)
07-28-2012, 12:40 AM
Find


Messages In This Thread
Display text message until... - by iFondue - 07-27-2012, 10:46 AM
RE: Display text message until... - by Kreekakon - 07-27-2012, 10:58 AM
RE: Display text message until... - by Adny - 07-27-2012, 11:02 AM
RE: Display text message until... - by iFondue - 07-27-2012, 11:23 AM
RE: Display text message until... - by iFondue - 07-27-2012, 04:58 PM
RE: Display text message until... - by Kreekakon - 07-28-2012, 12:40 AM



Users browsing this thread: 1 Guest(s)