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

[Snippet] OnInit

nvm, bad idea, too simple >.<

Tired of making an OnInit module to have onInit in it?

I'm certainly tired of it

JASS:
module OnInit
    private static method onInit takes nothing returns nothing
        call init()
    endmethod
endmodule


Demo
JASS:
struct Hi extends array
    private static method init takes nothing returns nothing
        call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,60,"Hello World")
    endmethod

    implement OnInit
endstruct
 
Top