Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My door won't open!
Bramme Offline
Junior Member

Posts: 13
Threads: 5
Joined: Jan 2012
Reputation: 0
#1
My door won't open!

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

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(){
}
(This post was last modified: 01-06-2012, 07:21 PM by Bramme.)
01-05-2012, 10:34 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: My door won't open!

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

01-05-2012, 10:40 PM
Find
Bramme Offline
Junior Member

Posts: 13
Threads: 5
Joined: Jan 2012
Reputation: 0
#3
RE: My door won't open!

Swing door Big Grin sorry i dident say anyting
01-05-2012, 11:13 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: My door won't open!

(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);
01-05-2012, 11:17 PM
Find
Bramme Offline
Junior Member

Posts: 13
Threads: 5
Joined: Jan 2012
Reputation: 0
#5
RE: My door won't open!

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);
01-05-2012, 11:20 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: My door won't open!

did you replace the "SetLevelDoorLocked" function with it? also make sure you have the swing door you want to open named correctly
01-05-2012, 11:22 PM
Find
Bramme Offline
Junior Member

Posts: 13
Threads: 5
Joined: Jan 2012
Reputation: 0
#7
RE: My door won't open!

Yes i replaced it i i am sure that i got the same namne :S I have tried to get this worked for houersSad
01-05-2012, 11:31 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: My door won't open!

what type of door are you using?
01-05-2012, 11:39 PM
Find
Inurias Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jan 2012
Reputation: 2
#9
RE: My door won't open!

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

Try to use
SetSwingDoorLocked("Door_1", false, false);
01-06-2012, 12:09 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#10
RE: My door won't open!

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

Try to use
SetSwingDoorLocked("Door_1", false, false);
Derp. How did I miss that...
01-06-2012, 12:41 AM
Find




Users browsing this thread: 1 Guest(s)