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
Quest Check Issue
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Quest Check Issue

The easiest way to do this I can think of is to use "HasItem" (I find this easier because you don't have to make things more complex by having to distinguish between the name/internal name of the quest); place it under "void OnEnter()" (Tbh I'm not sure if its OnEnter or OnStart, but one of them is used every time the player enters the map, the other only is used once), and if the player has the key, set the script area active:


void OnEnter()
{
if(HasItem("NAMEOFKEY") == true)
{
SetEntityActive("NAMEOFSCRIPTAREA", true);
}
}

I rate it 3 memes.
07-20-2012, 08:39 AM
Find


Messages In This Thread
Quest Check Issue - by Kiorga(x2)rd - 07-20-2012, 08:31 AM
RE: Quest Check Issue - by Adny - 07-20-2012, 08:39 AM
RE: Quest Check Issue - by Kiorga(x2)rd - 07-20-2012, 09:57 AM



Users browsing this thread: 2 Guest(s)