void OnStart()
{
StopMusic(5, 1);
PlayMusic("AsylumOutside", true, 0.7f, 1, 0, false);
AddEntityCollideCallback("Player", "Start", "EventCollide", true, 1);
SetMoveObjectState("Worm", 1);
}
void EventCollide(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Grunt", true);
AddEnemyPatrolNode("Grunt", "1", 1, "");
AddEnemyPatrolNode("Grunt", "2", 1, "");
AddEnemyPatrolNode("Grunt", "3", 1, "");
AddEnemyPatrolNode("Grunt", "4", 1, "");
AddEnemyPatrolNode("Grunt", "5", 1, "");
AddEnemyPatrolNode("Grunt", "6", 1, "");
AddEnemyPatrolNode("Grunt", "7", 0.001f, "");
AddEnemyPatrolNode("Grunt", "8", 0.001f, "");
AddEnemyPatrolNode("Grunt", "9", 5, "");
}
void Worm(string &in asParent, string &in asChild, int alState)
{
FadeOut(0.2f);
PlayGuiSound("worm_attack", 1.0f);
GivePlayerDamage(100, "bloodsplat", false, true);
CheckPoint("checkpoint", "PlayerStartArea_1", "ContinueAgain", "Hints", "DeathByWorm");
}