Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    August 2013
    Posts
    4

    Teamspeak 3 Lua Plugin: How do I put an interval in my loop?

    I learned lua by playing a game called Roblox.
    Today I decided to start learning the Teamspeak 3 way of lua.
    On roblox I used to have an easy function called wait()
    If we filled in wait() it waited one thick of time which depended on the server lagg, usually around 0.05 seconds.
    If we used wait(5) it would wait 5 seconds.
    Which means we could make a function like this:
    Code:
    function loop()
    	for i = 1 , 10 do
    		wait(1)
    		print("Hello World!")
    	end
    end
    In the teamspeak lua this function is not possible, does anyone know what I need to use to make something like a wait() function?

    Thanks for your help.

  2. #2
    Join Date
    August 2013
    Posts
    4
    bumping this post...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to implementing program loop in client plugin
    By rubinau in forum Client Plugins / Lua Scripts
    Replies: 8
    Last Post: October 4th, 2012, 11:06 AM
  2. [Solved] Banner and GFX interval BUG
    By florian_fr40 in forum Bug Reports [EN/DE]
    Replies: 2
    Last Post: June 22nd, 2010, 04:55 PM
  3. [solved] GFX Interval?
    By SeToY in forum General Questions
    Replies: 2
    Last Post: April 3rd, 2010, 04:16 PM
  4. Gfx Interval
    By Sheps in forum General Questions
    Replies: 5
    Last Post: December 23rd, 2009, 12:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •