• Tutorial weapon script modified, wait function (propgun)
    5 replies, posted
It works perfectly, but it doesn't [B]wait[/B] to throw another chair! This annoys me badly, since i knew lua already a bit i thought it was wait(NUMBER) Can anyone help me? I pasted the code [URL="http://pastebin.com/vA9Mf39M"]here[/URL] Look at line 47, that is what i did. What should i do different? Please help me.
There's no such function as "wait". You gotta use the timer library.
Explanation please? Or atleast a link?
[url]http://wiki.garrysmod.com/page/timer/Simple[/url]
instead of [CODE] wait(2) self:ThrowProp( "models/props/cs_office/table_meeting.mdl" )[/CODE] do [CODE] timer.Simple(2,function() self:ThrowProp( "models/props/cs_office/table_meeting.mdl" ) end)[/CODE]
Can i also do Timer.simple(5) Without function? [editline]7th August 2014[/editline] Ohh, okay. Thanks.
Sorry, you need to Log In to post a reply to this thread.