[SCRIPT] How do add poff effects to remove monster area? - 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: [SCRIPT] How do add poff effects to remove monster area? (/thread-16231.html) |
How do add poff effects to remove monster area? - SilentHideButFine - 06-17-2012 As the title said , i want to add poff effect to my monster remove script void OnStart() { SetEntityCallbackFunc("keynotwork", "PickUpKeyFunc"); AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "remove", true, 1); } void remove(string &in asParent, string &in asChild, int alState) { SetEntityActive("servant_grunt_1", false); } void PickUpKeyFunc(string &in entity, string &in type) { if(type == "OnPickup") { SetEntityActive("servant_grunt_1", true); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 2, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 2, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 2, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 2, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 2, ""); StartPlayerLookAt("castle_2", 5, 5, ""); PlaySoundAtEntity("", "react_scare.snt", "mansion_2", 0, false); GiveSanityDamage(40, true); AddTimer("StopLookAt", 3, "StopLookAtEvent"); } } void StopLookAtEvent(string &in asTimer) { StopPlayerLookAt(); } RE: How do add poff effects to remove monster area? - Mackiiboy - 06-17-2012 (06-17-2012, 12:25 PM)SilentHideButFine Wrote: As the title said , i want to add poff effect to my monster remove script. Use: FadeEnemyToSmoke(string& asName, bool abPlaySound); RE: How do add poff effects to remove monster area? - SilentHideButFine - 06-17-2012 (06-17-2012, 12:38 PM)Mackiiboy Wrote:ty for the fast reply(06-17-2012, 12:25 PM)SilentHideButFine Wrote: As the title said , i want to add poff effect to my monster remove script. |