Help with a Lua script

liunx

Guest
I realize this probably isn't the proper place for this, so I aplogize beforehand, but I'm having trouble with writing a very basic Lua function.<br />How would I go about setting a timer with the Lua scripting language? <br />What I'd like, exactly, is a function that performs two actions, each seperated by an interval of 3 seconds.<br />Any help would be extremely appreciated. I'm just beginning this, obviously, and I'm having a difficult time of it.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />function DoTwo()<br />DoAction("1")<br /><wait 3 seconds><br />DoAction("2")<br />end <br /><!--c2--></div><!--ec2--><br /><br />Is basically what I'm getting at.
</div>
 
Top