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.)
|