• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade 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 19
Joined
Jan 1, 2018
Messages
742
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
742
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