[SCRIPT] Have Monster Patrol Without Attacking - 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] Have Monster Patrol Without Attacking (/thread-25255.html) |
Have Monster Patrol Without Attacking - TurdFerguson - 05-10-2014 Hello everyone. I have a scenario planned out where a monster walks by a set of windows and casts a shadow. However, the monster will of course follow its set AI and see the player through the windows and attack rather than follow its patrol nodes. Is there a script I can use to disable the monster from attacking a merely have walk around outside? Thanks! RE: Have Monster Patrol Without Attacking - MsHannerBananer - 05-10-2014 This is super easy! PHP Code: SetEnemyDisableTriggers(string& asName, bool abX); It's as easy as that! LOL Okay, so when you activate the monster, put that little baby into the function: string& asName is the name of your monster (with quotes) and bool abX would be true (no quotes). This particular line disables the enemy triggers, which, as you may have guessed, disables the monsters reactions to the players. That means, should your player walk close enough to it, make a noise or technically "be seen" by the monster, he won't do a single thing. RE: Have Monster Patrol Without Attacking - Romulator - 05-10-2014 OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box! Just an alternative, both methods will produce the same results RE: Have Monster Patrol Without Attacking - TurdFerguson - 05-10-2014 Thanks guys! Really appreciate it! RE: Have Monster Patrol Without Attacking - MsHannerBananer - 05-10-2014 (05-10-2014, 09:50 AM)Romulator Wrote: OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box! I never even thought of that. Oooooobviously I haven't been using enough monsters in the level editor. LOL RE: Have Monster Patrol Without Attacking - FlawlessHappiness - 05-11-2014 (05-10-2014, 07:47 PM)HannahDJA Wrote:(05-10-2014, 09:50 AM)Romulator Wrote: OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box! That can both be a upside and a downside... Upside: I find that monsters have been overused in CSs. Monsters isn't just a thing to boost the scary factor of a story. They need the right placement in the development of scariness... Downside: Then you haven't played enough with monsters to understand what kind of a role they play RE: Have Monster Patrol Without Attacking - Romulator - 05-11-2014 (05-10-2014, 07:47 PM)HannahDJA Wrote:(05-10-2014, 09:50 AM)Romulator Wrote: OR as an alternative to scripting it, feel free to just tick the "Disable Triggers" by selecting the enemy in the Level Editor, going to the entity tab on the right side and... Well, ticking the box! Don't worry about it I discover a lot of things by accident haha |