No i got error instead when
something wrong with my code?
void OnStart()
{
AddUseItemCallback("", "keystudy_1", "Door_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door_1", false, false);
PlaySoundAtEntity("", "unlock_door", "Door_1", 0, false);
{
AddEntityCollideCallback("Player", "ScriptArea_1", "cabinet_nice_3", true, 1);
}
void MonsterCloset(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt_name", true);
}
void OnLeave()
{
}