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:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whats wrong with my script?
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#1
Whats wrong with my script?

It says unexpected end of file?

void OnEnter()
{
AddEntityCollideCallback("Player", "Intro_Quest_Area", "GetIntroQuest", true, 1);
AddEntityCollideCallback("Player", "Intro_Complete_Area", "FinishIntroQuest", true, 1);
}

void GetIntroQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("introquest", "IntroQuest");
}

void FinishIntroQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("introquest", "IntroQuest");

Void OnStart()
{
AddUseItemCallback("", "roomkey_1", "door_to_outside", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_to_outside" , false , true);
PlaySoundAtEntity("" , "unlock_door" , "door_to_outside" , 0, false);
RemoveItem("roomkey_1");
}

Beyond the Mountains of Madness [15%]
This forum is dying.
07-27-2011, 06:31 PM
Find


Messages In This Thread
Whats wrong with my script? - by ZyLogicX - 07-27-2011, 06:31 PM
RE: Whats wrong with my script? - by Kyle - 07-27-2011, 06:35 PM
RE: Whats wrong with my script? - by ZyLogicX - 07-27-2011, 06:45 PM
RE: Whats wrong with my script? - by Kyle - 07-27-2011, 07:30 PM



Users browsing this thread: 1 Guest(s)