14.05.2011, 09:44
I've been working on a house system, and I've made it so the lock on a house door can be broken. Now, at the default locklevel of 1 (the weakest lock level without the lock being broken) the breaking procedure should take between 35000 to 55000ms, or 35 to 55 seconds, but for some reason it only takes around 5 seconds to break the lock.
Here is my code (the /breaklock command and the function):
http://pastebin.com/fXcpnQNA
And here is my debug log:
I hope someone can help me.
Here is my code (the /breaklock command and the function):
http://pastebin.com/fXcpnQNA
And here is my debug log:
Quote:
[10:30:45] i: 999, time: 3035, timeremaining: -996 [10:30:45] i: 1999, time: 3035, timeremaining: -1996 [10:30:45] i: 2999, time: 3035, timeremaining: -2996 [10:30:45] i: 3999, time: 3035, timeremaining: -3996 |