void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_Malo", "SpawnMalo", true, 1);
AddEntityCollideCallback("malo", "MaloDeSpawn", "DeSpawnMalo", true, 1);
}
void SpawnMalo(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "notice_long.snt", "malo", 0, false);
PlayMusic("search_suitor.ogg", true, 0.8f, 0, 0, true);
SetMessage("SetMessage", "SM_Malo", 0);
SetEntityActive("malo", true);
SetSwingDoorClosed("sewer_arched_1", true, true);
AddEnemyPatrolNode("malo", "PathNodeArea_1", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_2", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_3", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_4", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_5", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_6", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_7", 0.1f, "");
AddEnemyPatrolNode("malo", "PathNodeArea_8", 0.1f, "");
}
void DeSpawnMalo(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("malo", true);
StopMusic(1.0f, 0);
SetMessage("SetMessage", "SM_MaloGone", 0);
}
void OnEnter()
{
}
void OnLeave()
{
}