Bramme
Junior Member
Posts: 13
Threads: 5
Joined: Jan 2012
Reputation:
0
|
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 |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
Bramme
Junior Member
Posts: 13
Threads: 5
Joined: Jan 2012
Reputation:
0
|
RE: My door won't open!
Swing door sorry i dident say anyting
|
|
01-05-2012, 11:13 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
RE: My door won't open!
(01-05-2012, 11:13 PM)Bramme Wrote: Swing door sorry i dident say anyting Then "
SetLevelDoorLocked("Door_1", false); " should be:
SetSwingDoorLocked("Door_1", false);
|
|
01-05-2012, 11:17 PM |
|
Bramme
Junior Member
Posts: 13
Threads: 5
Joined: Jan 2012
Reputation:
0
|
RE: My door won't open!
No i got a error when i try to start the map
Fattal error Could not load script file. Not matching singnatures to SetSwingDoorLocked("Door_1", false);
|
|
01-05-2012, 11:20 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
Bramme
Junior Member
Posts: 13
Threads: 5
Joined: Jan 2012
Reputation:
0
|
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 houers
|
|
01-05-2012, 11:31 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
RE: My door won't open!
what type of door are you using?
|
|
01-05-2012, 11:39 PM |
|
Inurias
Junior Member
Posts: 20
Threads: 0
Joined: Jan 2012
Reputation:
2
|
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 |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
|