Hi, I started to make custom story and I don't have any scripting experience.. Why I get this error when I try load my map : main(32,27) : ERR : Expected '('
This is my script and tell if there is something else wrong.
void OnStart()
{
AddEntityCollideCallback("Player","ScriptArea_1", "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt" , true);
AddEnemyPatrolNode("servant_grunt", "1", 2,"");
AddEnemyPatrolNode("servant_grunt", "2", 2,"");
AddEnemyPatrolNode("servant_grunt", "3", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "4", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "5", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "6", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "7", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "8", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "9", 1.3,"");
AddEnemyPatrolNode("servant_grunt", "10", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "11", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "12", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "13", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "14", 1.7,"");
AddEnemyPatrolNode("servant_grunt", "15", 1.7,"");
}
void OnEnter()
{
AddUseItemCallback("", "crowbar_1", "ovi1", "ekanovenavaus", true);
void ekanovenavaus(string&in asItem, string &in asEntity)
SetSwingDoorLocked("ovi1", false, true);
PlaySoundAtEntity("", "unlock_door", "ovi1", 0, false);
RemoveItem("crowbar_1");
}