08-28-2014, 02:20 PM
Need help, Made a sript but i get the error ""error unexpected end of file""
Can someone help me?
TheScript:
Can someone help me?
TheScript:
Quote:void OnStart()
{
AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}
void EventCollide(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Grunt", true);
AddEnemyPatrolNode("Grunt", "Node_1", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_2, 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_3", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_4", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_5", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_6", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_7", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_8", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_9", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_10", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_11", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_12", 0.001f, "");
}