Hi. I'm new to this level editor, and I'm having problems understanding what can be wrong with my script-code. Can anyone please tell me, it would be great if someone could
errors:
main (13,6) ERR: Expected "("
main (21,6) ERR: Expected "("
main (29,6) ERR: Expected "("
main (35,6) ERR: Expected "("
main (47,6) ERR: Expected "("
Here's the code:
void OnStart()
{
{
AddEntityCollideCallback("Player", "BildeShow", "ActivateBildeShow", true, 1);
AddEntityCollideCallback("Player", "Monster1Area", "ActivateMonster", true, 1 );
AddUseItemCallback("", "SkapNokkel", "Skap1", "OpenDoor1", true);
AddUseItemCallBack("", "DoorKey", "Door1", "OpenDoor2", true);
SetSwingDoorLocked("Skap1", true, true);
SetSwingDoorDisableAutoClose("Skap1", true);
SetSwingDoorClosed("Skap1", false, true);
}
void ActivateBildeShow(string &in asParent, string &in asChild, int alState)
{
AddPropForce("Bilde1", -1000, 0, 0, "world");
SetPlayerSanity(10);
}
void OpenDoor1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Skap1", false, false);
PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
RemoveItem(asItem);
SetPlayerSanity(1);
AddTimer("Timer1", 0.5, "ReleaseMartin");
}
void ReleaseMartin(string &in asTimer)
{
AddPropForce("Martin", 10000, 0, 0, "world");
}
void ActivateMonster(string &in asParent, string &in asChild, int alState)
{
ShowEnemyPlayerPosition("Monster1");
AddQuest("Quest1", "Welcome");
SetEntityActive("Monster1", true);
AddEnemyPatrolNode("Monster1", "PathNodeArea_1", 0, "Idle");
AddQuest("Quest2", "KeyToLocker");
}
void OpenDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door1", false, true);
PlaySoundAtEntity("", "unlock_door", "Door1", 0, false);
RemoveItem(DoorKey);
}
}
void OnEnter(){}
void OnExit(){}