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
Please Help!
EthanLancaster Offline
Junior Member

Posts: 15
Threads: 9
Joined: Mar 2012
Reputation: 0
#7
RE: Please Help!

Here is my current script. Please help im so lost. It says cannot use item this way every time. Thanks in advance!

void OnStart ()
{
AddUseItemCallback("", "LibraryKey", "mansion_2", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "StartPoint_Quest", "GetStartPoint", true, 1);
AddEntityCollideCallback("Player", "StartPoint_Quest", "FinishStartPoint", true, 1);
}
void KeyOnDoor(string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 1, false);
RemoveItem("LibraryKey");
GiveSanityBoostSmall();
}

void GetStartPoint(string &in asParent, string &in asChild, int alState)
{
AddQuest("investigate","Investigate");
PlayGuiSound("react_breath_slow", 0.5f);
}

void FinishStartPoint(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("investigate","Investigate") ;
GiveSanityBoostSmall();
}



03-16-2012, 08:12 PM
Find


Messages In This Thread
Please Help! - by EthanLancaster - 03-15-2012, 05:16 AM
RE: Please Help! - by Your Computer - 03-15-2012, 06:54 AM
RE: Please Help! - by Equil - 03-15-2012, 07:16 AM
RE: Please Help! - by Strembitsky - 03-15-2012, 02:23 PM
RE: Please Help! - by Xanthos - 03-16-2012, 01:19 AM
RE: Please Help! - by EthanLancaster - 03-16-2012, 06:54 PM
RE: Please Help! - by EthanLancaster - 03-16-2012, 08:12 PM
RE: Please Help! - by Xanthos - 03-16-2012, 09:42 PM
RE: Please Help! - by EthanLancaster - 03-16-2012, 10:14 PM



Users browsing this thread: 1 Guest(s)