The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Piano scare. Scripting help
EthanLancaster Offline
Junior Member

Posts: 15
Threads: 9
Joined: Mar 2012
Reputation: 0
#1
Piano scare. Scripting help

I am absolutley terrible at scripting. I need help and lots of it. can someone please fix the script?

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

void pianostop(string &in asParent, string &in asChild, int alState)
void GetStartPoint(string &in asParent, string &in asChild, int alState)
{
AddQuest("investigate","Investigate");
PlaySoundAtEntity("", "general_piano02", piano_1", "Player", 0.5f, false);
PlayGuiSound("react_breath_slow", 0.5f);
}

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

03-16-2012, 11:01 PM
Find


Messages In This Thread
Piano scare. Scripting help - by EthanLancaster - 03-16-2012, 11:01 PM
RE: Piano scare. Scripting help - by Strembitsky - 03-16-2012, 11:33 PM
RE: Piano scare. Scripting help - by PythonBlue - 03-17-2012, 03:32 AM
RE: Piano scare. Scripting help - by Xanthos - 03-20-2012, 12:30 AM
RE: Script Help! - by Equil - 03-18-2012, 06:00 AM



Users browsing this thread: 1 Guest(s)