So here it is. I'm trying to make it so that when you enter an area called MonsterDoor a suitor called Scarydude starts bashing a door down to get to the player. There will also be a blurring of the screen and the player making a scared sound. Here's the script:
void OnStart()
{
AddEntityCollideCallback("Player","MonsterDoor","CollidePlayerWithMonsterDoor");
}
void CollidePlayerWithMonsterDoor(string &in asParent, string &in asChild, int alState)
{
ShowEnemyPlayerPosition(''Scarydude'');
FadeRadialBlurto(1.0f, 1.0f);
PlaySoundAtEntity(''MonsterDoor'', ''react_scare6.ogg'', ''Player'', true);
SetEntityActive("Scarydude", true);
}
////////////////////////////
// Run first time starting map
void OnStart()
{
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Is there something wrong here?
Also a side question, anyone know why my game became extremely laggy when I deleted my map's .cache file?
Thanks for any help in advance.
''Sick, twisted child... You'll burn for this!''