Err (60, 26) Expected '('
I think it's this part of the script that has an error, but i'm not sure what to do.
void DeactivateMonster (string &in asTimer)
{
SetEntityActive("DungeonGrunt", false);
AddTimer("",10,""); \\ Timer to change map after the grunt goes away
{
void ChangeMap(string& Test2.map, string& PlayerStartArea_2, string& , string& )
};
}
Heres the whole script if you need it:
////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "DungeonKey1", "DungeonDoor", "UnlockDungeon", true);
};
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void UnlockDungeon(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}
void ActivateMonster (string &in item)
{
{
SetEntityActive("DungeonGrunt", true);
AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_1", 0, "idle");
AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_2", 0, "idle");
AddTimer("",30,"DeactivateMonster")
;
}
}
void DeactivateMonster (string &in asTimer)
{
SetEntityActive("DungeonGrunt", false);
AddTimer("",10,"");
{
void ChangeMap(string& Test2.map, string& PlayerStartArea_2, string& , string& )
};
}
(This post was last modified: 06-17-2012, 11:44 PM by Matt201496.)
|