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
Text ingame- Script help
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#7
RE: Text ingame- Script help

Try this:
Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "AreaHelp", "CollideAreaHelp", false, 1);
}


void CollideAreaHelp(string &in asParent, string &in asChild, int alState)
{
if(HasItem("cellar_key") == true)
{
SetMessage("Messages", "HasKey", 5);
}
else
{
SetMessage("Messages", "GAH", 5);
}
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


When Life No Longer Exists
Full-conversion mod
(This post was last modified: 01-22-2012, 09:47 PM by Unearthlybrutal.)
01-22-2012, 07:26 PM
Website Find


Messages In This Thread
Text ingame- Script help - by Xeronaile - 01-22-2012, 04:17 PM
RE: Text ingame- Script help - by Unearthlybrutal - 01-22-2012, 04:25 PM
RE: Text ingame- Script help - by Xeronaile - 01-22-2012, 04:39 PM
RE: Text ingame- Script help - by Unearthlybrutal - 01-22-2012, 04:42 PM
RE: Text ingame- Script help - by Xeronaile - 01-22-2012, 04:46 PM
RE: Text ingame- Script help - by Xeronaile - 01-22-2012, 07:22 PM
RE: Text ingame- Script help - by Unearthlybrutal - 01-22-2012, 07:26 PM
RE: Text ingame- Script help - by Xeronaile - 01-22-2012, 09:31 PM
RE: Text ingame- Script help - by Xeronaile - 01-22-2012, 11:24 PM
RE: Text ingame- Script help - by Unearthlybrutal - 01-23-2012, 12:02 PM
RE: Text ingame- Script help - by Xeronaile - 02-01-2012, 02:51 AM



Users browsing this thread: 1 Guest(s)