Skip to content

Commit 315c5e0

Browse files
authored
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)
1 parent 0f2e542 commit 315c5e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/funkin/backend/scripting/HScript.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ class HScript extends Script {
119119
interp.execute(expr);
120120
call("new", []);
121121
}
122+
123+
#if GLOBAL_SCRIPT
124+
funkin.backend.scripting.GlobalScript.call("onScriptSetup", [this, "hscript"]);
125+
#end
122126
}
123127

124128
public override function reload() {

0 commit comments

Comments
 (0)