Well i've been testing out all new scripts, and i kept these scripts:
///////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityPlayerInteractCallback("mansion_3", "scream", true);
AddEntityCollideCallback("Player", "monsterarea_1", "monsteractive", true, 0);
AddEntityCollideCallback("enemy1", "monsterareainactive", "monsterinactive", true, 0);
PlayMusic("26_event_brute.ogg", false, 4, 2.0f, 0, false);
}
void scream(string &in entity)
{
AddPropImpulse("mansion_3", -2,0,0,"World");
PlaySoundAtEntity("pound", "hit_wood", "AreaPoundDoorEffect", 0, false);
PlaySoundAtEntity("L02_attack", "L02_attack.snt", "AreaPoundDoorEffect", RandFloat(0.0f, 0.5f), false);
CreateParticleSystemAtEntity("pound_dust","ps_hit_wood","AreaPoundDoorEffect", false);
AddTimer("DoorPoundLoop", RandFloat(14, 50), "TimerDoorPoundLoop");
AddDebugMessage("Pound pound", false);
}
void monsteractive(string &in entity)
{
SetEntityActive("enemy1", true);
PlaySoundAtEntity("12_girl_scream", "12_girl_scream.snt", "Player", 0, false);
PlayMusic("att_suitor.ogg", true, 5.0f, 6.0f, 3.0f, 0);
AddEnemyPatrolNode("enemy1", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_2", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_4", 0.0f, "");
AddEnemyPatrolNode("enemy1", "PathNodeArea_5", 0.0f, "");
}
void monsterinactive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemy1",false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave
{
}
ERROR:
"main (45,1) : ERR : Expected '('
PLEAZ HELP MEH!