rybray
Junior Member
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
1
|
Unexpected end of file
I get the error saying that there is an unexpected end to my file. Could someone point out my error, I cannot find it.
/////////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "DoorAreaOne", "CollideDoorOne", true, 1);
}
void CollideDoorOne(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_slow_1", true, true);
}
////////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "DoorKey, "castle_arched01_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_1", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_1", 0, false);
RemoveItem("DoorKey");
}
////////////////////////////////
// Run when leaving map
void OnLeave()
{
}
|
|
08-11-2011, 03:48 AM |
|