Results 1 to 2 of 2

Thread: updateworld() - when should it be used?

  1. #1
    iBot User
    Join Date
    Sep 2012
    Posts
    239
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    46 Post(s)
    Reputation
    23
    Rep Power
    5

    updateworld() - when should it be used?

    I still don't know what updateworld() does, but feel it may be an useful function. What does it do and when should I use it?

  2. #2
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    for example, if you are in while loop with global variable f.e:
    PHP Code:
    while (standtime 10000) do
        
    wait(500600)
        
    updateworld()
    end 
    You can make this action without updateworld(), open debug window and run it,

    PHP Code:
    while (standtime 10000) do
        print(
    standtime)
        
    wait(500600)
    end 
    and then make it with updateworld(), you will see difference.

Posting Permissions

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