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
unexpected end of file
Fartfox Offline
Junior Member

Posts: 1
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
unexpected end of file

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "the_dick", "evan_ass", "KeyOnDoor", true);
AddUseItemCallback("", "the_penis", "evan_dick", "UseKeyOnDoor", true);
AddUseItemCallback("", "the_twat", "evan_twat", "UsedKeyOnDoor", true);
AddUseItemCallback("", "the_shit", "evan_shit", "UsedKeyOnDoor2", true);
AddUseItemCallback("", "the_poop", "evan_poop", "UsedKeyOnDoors", true);
AddEntityCollideCallback("Player", "script_area_1", "GetQuest", true, 1);
AddEntityCollideCallback("Player", "script_area_2", "FinishQuest", true, 1);
}


void GetQuest(string & asParent, string &in asChild, int alState)
{
AddQuest("quest1", "Quest1");
PlaySoundAtEntity("", "ui_add_quest1", "Player", 0.0f, true);
}


void FinishQuest(string & asParent, string &in asChild, int alState)
{
CompleteQuest("quest1", "Quest1");
GiveSanityBoost();
PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true);
}



void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_ass", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_ass", 0.0f, true);
RemoveItem("the_dick");
}


void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_dick", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_dick", 0.0f, true);
RemoveItem("the_penis");
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_twat", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_twat", 0.0f, true);
RemoveItem("the_twat");
}


void UsedKeyOnDoors(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_poop", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_poop", 0.0f, true);
RemoveItem("the_poop");
}


void UsedKeyOnDoors2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("evan_shit", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "evan_shit", 0.0f, true);
RemoveItem("the_shit");
}


////////////////////////////
// Run when entering map
void OnEnter()
{
}


////////////////////////////
// Run when leaving map
void OnLeave()
{
}


Please Help! Unexpected end of file!
-----------------------------------
83,2 unexpected end of file
(This post was last modified: 03-04-2012, 08:19 PM by Fartfox.)
03-04-2012, 08:16 PM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#2
RE: unexpected end of file

void FinishQuest(string & asParent, string &in asChild, int alState)
{
CompleteQuest("quest1", "Quest1");
GiveSanityBoost();
PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true);
}




PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true); you forgot the " at "Player"


Quote:void FinishQuest(string & asParent, string &in asChild, int alState)
{
CompleteQuest("quest1", "Quest1");
GiveSanityBoost();
PlaySoundAtEntity("", "ui_sanity_gain", "Player", 0.0f, true);
}

Signature to awesome to be displayed.
03-04-2012, 09:39 PM
Find




Users browsing this thread: 1 Guest(s)