Frictional Games Forum (read-only)
Scripting Help. - 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: Scripting Help. (/thread-29640.html)



Scripting Help. - dailycreepypasta - 02-22-2015

I was wondering if there was any way that I can have a script where the "AddVoiceEffect" script ran when an enemy can't see the player and it stops when it does see the player. Also, is it possible that if the player hides and isn't seen it can resume from where it left off or go to the next line? Thanks alot if you can at least help me in the slightest way.


RE: Scripting Help. - FlawlessHappiness - 02-22-2015

You can always assign a monster pathnodes with

AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);


You want the enemy to have different voices?
You can copy the enemy, then create a new one and change the voices in the model editor.