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

[Solved] Running a Lua script on map init

Status
Not open for further replies.
Level 9
Joined
Jul 30, 2018
Messages
445
Hey!

This may seems a bit simple question, yet I have not been able to find an answer for it.

With JASS, one can make an initializer to make a function run on map init. Or you can convert an empty GUI trigger to Custom Text and then check "Run on Map Initialization".

But is there such a thing for Lua? I've been trying to Google and search the answer, but apparently there aren't that much people making Lua tutorials for Warcraft 3. It just seems a bit silly to make a bunch of Lua functions and then call them all in a GUI trigger... :p
 
Status
Not open for further replies.
Top