Secret door won't work - 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: Secret door won't work (/thread-15780.html) |
Secret door won't work - Shives - 06-02-2012 Hi I want to make a secret door like in the "old Archives". But it doesn't work, if i use the lever nothing happens. [attachment=2933] My DoorScript: void OnStart() { SetEntityConnectionStateChangeCallback("Lever_1", "Lever"); } void Lever(string &in asEntity, int alState) { if (alState == 1) { CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_24", false); SetMoveObjectState("Secret",1.0f); CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_25", false); CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_26", false); CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_27", false); CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_28", false); PlaySoundAtEntity("", "quest_completed.snt", "ScriptArea_7", 0, false); } } RE: Secret door won't work - i3670 - 06-02-2012 Do you have a Rotate Area that the shelf can rotate around? RE: Secret door won't work - Your Computer - 06-02-2012 MoveObjects are required for SetMoveObjectState. RE: Secret door won't work - Shives - 06-02-2012 Oh, I don't get it So what I have to write in the script? RE: Secret door won't work - Putmalk - 06-02-2012 Below is copied code from old_archives. They did the same thing you're trying to do; this is how you accomplish moving a secret door. When in doubt, always check to see how the creators did it. Code: ConnectEntities("door_connection", //Name of connection RE: Secret door won't work - Your Computer - 06-02-2012 (06-02-2012, 07:16 PM)Shives Wrote: Oh, I don't get it It's not necessarily about the script, it's about the object you're trying to move. Not all objects can be moved through scripts, and i have no reason to believe the object in the image is a MoveObject entity. |