![]() |
I need help with my script! pleaz view - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: I need help with my script! pleaz view (/thread-8815.html) |
I need help with my script! pleaz view - Dizturbed - 06-26-2011 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! ![]() RE: I need help with my script! pleaz view - Paulpolska - 06-26-2011 change Code: void OnLeave to Code: void OnLeave() end. RE: I need help with my script! pleaz view - Dizturbed - 06-26-2011 God, what a logical error, lool, thanks tho! RE: I need help with my script! pleaz view - Paulpolska - 06-26-2011 No problem. Big problem have me ;] |