The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Need help with my script!!!!!
MrNord94 Offline
Junior Member

Posts: 1
Threads: 2
Joined: May 2013
Reputation: 0
#1
Need help with my script!!!!!

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 Big Grin



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(){}
05-05-2013, 04:58 PM
Find


Messages In This Thread
Need help with my script!!!!! - by MrNord94 - 05-05-2013, 04:58 PM
RE: Need help with my script!!!!! - by Tomato Cat - 05-05-2013, 05:39 PM



Users browsing this thread: 1 Guest(s)