Frictional Games Forum (read-only)

Full Version: My door won't open!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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(){
}
Is it a swing door or level door you are trying to unlock?

Swing door Big Grin sorry i dident say anyting
(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);
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);
did you replace the "SetLevelDoorLocked" function with it? also make sure you have the swing door you want to open named correctly
Yes i replaced it i i am sure that i got the same namne :S I have tried to get this worked for houersSad
what type of door are you using?
"SetSwingDoorLocked" seems to take three arguments:
Code:
void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);

Try to use
Code:
SetSwingDoorLocked("Door_1", false, false);
(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...
Pages: 1 2