Frictional Games Forum (read-only)
Scripting between different maps - 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 between different maps (/thread-16908.html)



Scripting between different maps - Lizard - 07-12-2012

Hey guys

Im sorry to disturb you again

I want a key from 00.map to open a door in 01.map. Can i do that with just the normal codes:

AddUseItemCallback and SetSwingDoorLocked? Or do i need something else to do it?


And how to set it up?


RE: Scripting between different maps - MaZiCUT - 07-12-2012

You can do it the normal way.


RE: Scripting between different maps - Lizard - 07-12-2012

Which .hps file do i script it in. The 00.hps. or the 01.hps?


RE: Scripting between different maps - SiderealStop - 07-12-2012

I believe you put it in the one with the door you need to unlock. So if the door is in 01.hps, then put it there. ^^


RE: Scripting between different maps - Lizard - 07-12-2012

It worked just fine.

Thanks guys