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
sorry i dident say anyting
(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);
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);
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 houers
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...