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
Okay what's wrong in this script ?!
Jahffax Offline
Junior Member

Posts: 7
Threads: 1
Joined: Apr 2011
Reputation: 0
#4
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.
04-22-2011, 11:18 AM
Find


Messages In This Thread
Okay what's wrong in this script ?! - by Jahffax - 04-21-2011, 11:00 AM
RE: Okay what's wrong in this script ?! - by Jahffax - 04-22-2011, 11:18 AM



Users browsing this thread: 1 Guest(s)