omg now it writes Expected Identifier and unexpected token { ('-.-)
Ive gt this in my SCRIPT file lets see it
void OnStart()
{
AddUseItemCallback("", "Klic", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "Klic2", "mansion_4", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
}
AddEnemyPatrolNode("Brute_1", "Point_1", 0.0f, "");
{
Wheres mistake?
Ive fixed that!! You dont have to put something to that script file if you dont want to set them specificaly to points you want you just have to put some points to your map then run it and when monster will hear sound then it will go to nearest point youve created!!!
YEJJJJJ!