RE: Okay what's wrong in this script ?!
Well Now I got fixed it but new problem came!
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", 0.6,"");
AddEnemyPatrolNode("servant_grunt", "13", 1,"");
AddEnemyPatrolNode("servant_grunt", "14", 1,"");
AddEnemyPatrolNode("servant_grunt", "15", 1,"");
}
void OnEnter()
{
AddUseItemCallback("", "crowbar_1", "ovi1", "avaus", true);
void avaus(string &in asItem, string &in asEntity);
{
SetSwingDoorLocked("ovi1", true, true);
PlaySoundAtEntity("", "unlock_door", "ovi1", 0, false);
RemoveItem("crowbar_1");
}
void OnLeave()
{
}
I know there is something little bit wrong but I can't find it lol. It says unexpected end of file.
|