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
Xeronaile Offline
Junior Member

Posts: 21
Threads: 2
Joined: Jan 2012
Reputation: 0
#9
RE: Text ingame- Script help

Quote: 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()
{

}

_________________
What I have highlighted in bold,is that supposed to be there?
01-22-2012, 11:24 PM
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)