• 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.

[Lua] Basic lua functions

Status
Not open for further replies.
Level 19
Joined
Jan 1, 2018
Messages
738
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:
Level 19
Joined
Jan 1, 2018
Messages
738
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.
Top