• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Lua] Basic lua functions

Status
Not open for further replies.
Level 20
Joined
Jan 1, 2018
Messages
770
I checked all functions for lua 5.3 by comparing them to nil. You can see the result in the image below. Functions highlighted red cannot be used.
Lua wc3 functions.png

You can find the list of functions and see their documentation here.
 
Last edited:
coroutine.wrap doesn't work when I've tried it. It is supposed to be the same as resume(create) but instead does nothing.
From the documentation: "Returns a function that resumes the coroutine each time it is called." I tried with the following code and it works:
Lua:
local Test = function(msg)
    print(msg)
end
local co = coroutine.wrap(Test)
co("Hello world")
 
Status
Not open for further replies.
Back
Top