added onScriptSetup so now instead of using onScriptCreated in HScript, you can now use this function whent the script is actually initalized!!!! LETS FUCKING GO!!! (#618)

This commit is contained in:
ItsLJcool
2025-04-23 21:51:12 +02:00
committed by GitHub
parent 0f2e542ca0
commit 315c5e007c
@@ -119,6 +119,10 @@ class HScript extends Script {
interp.execute(expr);
call("new", []);
}
#if GLOBAL_SCRIPT
funkin.backend.scripting.GlobalScript.call("onScriptSetup", [this, "hscript"]);
#end
}
public override function reload() {