void OnStart()
{
/////callback func
SetEntityCallbackFunc("orbpiece_turquoise_1", "check_1");
SetEntityCallbackFunc("lantern_1", "check_2");
}
void check_2(string &in asEntity, string &in asType)
{
check();
AddLocalVarInt("var_pick", 1);
}
void check_1(string &in asEntity, string &in asType)
{
check();
AddLocalVarInt("var_pick", 1);
}
void check()
{
if(GetLocalVarInt("var_pick") == 2)
{
AutoSave();
CheckPoint("save_orb_redux_02", "checkpoint_1", "", "Hints", "BeCarefulYouSilly");
GiveSanityBoost();
AddTimer("spawn_warden", 4.0f, "warden_scene");
}
}
void warden_scene(string &in asTimer)
{
AddEffectVoice("placeholder", "", "Dialogues", "CH01L09_Alodar_1", false, "Player", 5.0f, 100.0f);
AddQuest("get_out2", "get_outta_here2");
SetEntityActive("shadow_appear", true);
SetEntityActive("warden_placeholder_good_1", true);
for(int i=1;i<=11;i++)
{
AddEnemyPatrolNode("warden_placeholder_good_1", "PathNodeArea_"+i, 0.01f, "");
}
}