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!
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#5
RE: Please Help!

I see this error
AddUseItemCallback("", "LibraryKey, mansion_1, UsedKeyOnDoor, true);

See this ["LibraryKey]
Add them "
FIXED ["LibraryKey"]
See this [mansion_1]
FIXED ["mansion_1"]

--And I would add this to the scripts--
GiveSanityBoostSmall();
OR
GiveSanityBoost();
----

PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem("LibraryKey");
-----------------Now Here I fix it all At once--------------
void OnStart ()
{
AddUseItemCallback("", "LibraryKey", "mansion_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "StartPoint_Quest", "GetStartPoint", true, 1);
AddEntityCollideCallback("Player", "StartPoint_Quest", "FinishStartPoint", true, 1);
}
void UsedKeyOnDoor(string &in asEntity, int alState)
{
SetSwingDoorLocked("mansion_1", false, true);

PlaySoundAtEntity("", "unlock_door", "Player", 0, 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();
}

-----------------------------
Plug that shit in and if a message pops up.
Reply that message so I can fixy
(This post was last modified: 03-16-2012, 01:21 AM by Xanthos.)
03-16-2012, 01:19 AM
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)