Frictional Games Forum (read-only)
Script Question - 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 Question (/thread-15004.html)



Script Question - TheGilgameshZocker - 04-22-2012

Hi guys!
Can you tell me, what I have to do in this case: I want that the player walks through the rooms of my map, and at the end, he finds a key and I want a monster to spawn at a point, where the player already has been, but the monster should only spawn, when the player already has picked up the key. (for example Amnesia original: Storage Room, when you have picked up those rods and you want to go out, there will spawn a lot of monsters.)I can't use an AddEntityCollideCallback, can't I? Am I able to make something like: SetAreaActive, or so?
Please help me! Big Grin


RE: Script Question - Cranky Old Man - 04-22-2012

https://www.youtube.com/watch?v=ZYbTxyjhGlg&feature=BFa&list=PLD326789BC99530C8


RE: Script Question - JetlinerX - 04-22-2012

*slap*


RE: Script Question - Cranky Old Man - 04-22-2012

(04-22-2012, 05:07 PM)JetlinerX Wrote: *slap*
Thank you, but I'm actually modding currently, and these pauses are fairly brief.



RE: Script Question - Homicide13 - 04-22-2012

I would suggest looking through the main Amnesia script files to try to answer questions like this, as you can learn a lot from them. For example, you know that this kind of thing happens in the storage room, so simply look through the script file associated for the storage room and see how they did it.

Reverse-engineering someone else's script is probably (at least in my opinion) the fastest and easiest way to learn.