Frictional Games Forum (read-only)
My door won't open! - 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: My door won't open! (/thread-12384.html)

Pages: 1 2


My door won't open! - Bramme - 01-05-2012

Can someone write whats wrong with my script. The scrip is open locked doors with key.

Code:
void OnStart(){   AddUseItemCallback("", "keystudy_1", "Door_1", "KeyOnDoor", true);}void KeyOnDoor(string &in asItem, string &in asEntity){     SetLevelDoorLocked("Door_1", false);     PlaySoundAtEntity("", "unlock_door", "Door_1", 0, false);}void OnLeave(){
}



RE: My door won't open! - Statyk - 01-05-2012

Is it a swing door or level door you are trying to unlock?




RE: My door won't open! - Bramme - 01-05-2012

Swing door Big Grin sorry i dident say anyting


RE: My door won't open! - Statyk - 01-05-2012

(01-05-2012, 11:13 PM)Bramme Wrote: Swing door Big Grin sorry i dident say anyting
Then "
SetLevelDoorLocked("Door_1", false); " should be:


SetSwingDoorLocked("Door_1", false);


RE: My door won't open! - Bramme - 01-05-2012

No i got a error when i try to start the mapSad
Fattal error Could not load script file. Not matching singnatures to SetSwingDoorLocked("Door_1", false);



RE: My door won't open! - Statyk - 01-05-2012

did you replace the "SetLevelDoorLocked" function with it? also make sure you have the swing door you want to open named correctly


RE: My door won't open! - Bramme - 01-05-2012

Yes i replaced it i i am sure that i got the same namne :S I have tried to get this worked for houersSad


RE: My door won't open! - Statyk - 01-05-2012

what type of door are you using?


RE: My door won't open! - Inurias - 01-06-2012

"SetSwingDoorLocked" seems to take three arguments:
Code:
void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);

Try to use
Code:
SetSwingDoorLocked("Door_1", false, false);



RE: My door won't open! - Statyk - 01-06-2012

(01-06-2012, 12:09 AM)Inurias Wrote: "SetSwingDoorLocked" seems to take three arguments:
Code:
void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);

Try to use
Code:
SetSwingDoorLocked("Door_1", false, false);
Derp. How did I miss that...