Help with break lock timing system
#1

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:
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

I hope someone can help me.
Reply


Messages In This Thread
Help with break lock timing system - by jameskmonger - 14.05.2011, 09:44
AW: Help with break lock timing system - by Nero_3D - 14.05.2011, 11:47
Re: Help with break lock timing system - by MadeMan - 14.05.2011, 14:25
Re: Help with break lock timing system - by jameskmonger - 14.05.2011, 17:36
Re: Help with break lock timing system - by jameskmonger - 15.05.2011, 07:09

Forum Jump:


Users browsing this thread: 1 Guest(s)