(12-15-2010, 11:28 PM)Frontcannon Wrote: What is it that everything you touch stops working??
Also, check (remember this word, I'm going to use it in every post I make to you from now on) the error message.
What is in line 75, 1?
Okay i knew that now.. And sorry.. i just wanna make this one map completed
Okay heres the full script on my first level:
void OnStart()
////// Starting Monster-fuctions
{
AddEntityCollideCallback("Player" , "Origin" , "scareactivate" , true , 1);
AddEntityCollideCallback("Player" , "Origin2" , "scareactivate2" , true , 1);
AddEntityCollideCallback("Player", "Sound_Area1", "PlaySound1", false, 0);
}
////////////////////////////
// Run when entering map
//////Door key open Functions
void OnEnter()
{
AddUseItemCallback("", "Door key I", "door_1", "KeyOnDoor", true);
AddUseItemCallback("", "Door key II", "door_2", "KeyOnDoor2", true);
AddUseItemCallback("", "Door key III", "door_3", "KeyOnDoor3", true);
AddUseItemCallback("", "Hall key", "door_4", "KeyOnDoor4", true);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
////////////////////////////
// Actual functions
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "door_1", 0.0f, false);
RemoveItem("Door_key I");
void KeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_2", false, true);
RemoveItem("Door_key II");
PlaySoundAtEntity("", "unlock_door.snt", "door_1", 0.0f, true);
}
void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_3", false, true);
RemoveItem("Door key III");
PlaySoundAtEntity("", "unlock_door.snt", "door_1", 0.0f, true);
}
void KeyOnDoor4(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_4", false, true);
RemoveItem("Hall key");
PlaySoundAtEntity("", "unlock_door.snt", "door_1", 0.0f, true);
}
void scareactivate(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("monster_1" , true);
AddEnemyPatrolNode("monster_1", "PathNodeArea_1", 0.0f, "true");
}
void scareactivate2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("monster_2" , true);
AddEnemyPatrolNode("monster_2", "PathNodeArea_2", 0.1f, "true");
AddEnemyPatrolNode("monster_2", "PathNodeArea_3", 0.1f, "true");
AddEnemyPatrolNode("monster_2", "PathNodeArea_4", 0.1f, "true");
AddEnemyPatrolNode("monster_2", "PathNodeArea_5", 0.1f, "true");
}
<--- This is line 75,1 i dont get it :I