Amnesia says that Script not Valid
Error ( 10,1) Unexpected token.. How to fix this ?
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "SecondRoomKey_1", "SecondRoom_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Corridorkey_1", "Level_2", "UsedKeyOnDoor", true);
}
void Teleport1(string &in asParent, string &in asChild, int alStates);
{
AddEntityCollideCallback("Player", "Script_1", "Teleport1", true, 1);
SetEntityActive("TeleportingNG_1", true);
PlaySoundAtEntity("", "24_iron_maiden.snt", "TeleportingNG_1", 0, false);
AddPropForce("TeleportingNG_1", -10000, 0, 0, "world");
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("SecondRoom_1", false, true);
SetSwingDoorLocked("Level_2", false, true);
PlaySoundAtEntity("", "unlock_door", "SecondRoom_1", 0, false);
PlaySoundAtEntity("", "unlock_door", "Level_2", 0, false);
RemoveItem("SecondRoomKey_1");
RemoveItem("Corridorkey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}