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
Unexpected end of file?!? plz help..
Ouroboros Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jul 2011
Reputation: 0
#6
RE: Unexpected end of file?!? plz help..

(07-17-2011, 10:24 PM)GTalbot Wrote: i was having the same problem do you see an error in this.

void OnStart()

{
AddUseItemCallback("", "key", "door", "KeyOnDoor", true);
SetEntityPlayerInteractCallback("note", "MonsterSpawn_1", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door", false, true);
PlaySoundAtEntity("", "unlock_door", "door", 0, false);
RemoveItem("key");
}
void MonsterSpawn_1(string &in asEntity)
{
SetEntityActive("grunt", true);
AddEnemyPatrolNode(grunt", "PathNodeArea_1", 3.5f, "");
AddEnemyPatrolNode(grunt", "PathNodeArea_2", 3.5f, "");
AddEnemyPatrolNode(grunt", "PathNodeArea_3", 3.5f, "");
}
////////////////////////////
// Run when leaving map
void OnLeave()

{

}

You forgot to put the first " when adding the enemy patrol nodes in MonsterSpawn_1.
07-18-2011, 04:17 AM
Find


Messages In This Thread
Unexpected end of file?!? plz help.. - by Jumpman - 05-11-2011, 04:49 PM
RE: Unexpected end of file?!? plz help.. - by Ouroboros - 07-18-2011, 04:17 AM



Users browsing this thread: 3 Guest(s)