Frictional Games Forum (read-only)
Can you make a hatch locked? - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Can you make a hatch locked? (/thread-7741.html)

Pages: 1 2 3


RE: Can you make a hatch locked? - DannieWest - 05-02-2011

(05-02-2011, 05:00 PM)Khyrpa Wrote: Perhaps make it a scary event: youre glad u found the key -> happily get to the hatch but it suddenly opens up without the key?

Haha, sounds cool! Only problem is the little fact that this is the first map I've ever done, only got one room, trying to get a cool way of getting out of it XD So pretty much heck of a noob with the scripting part, but is it like "Area -> script" in the editor, and then when the player enters the area, a SetMoveObjectState function?


RE: Can you make a hatch locked? - Khyrpa - 05-02-2011

I guess to make the hach move you should use the
AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
and dont forget to use particle effects and sounds!


RE: Can you make a hatch locked? - DannieWest - 05-02-2011

What script is used for starting the PropImpulse function when entering the Scriptarea?