• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Snippet] OnInit

Level 31
Joined
Jul 10, 2007
Messages
6,306
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