diff --git a/module/Core/Events.inc b/module/Core/Events.inc index 5b5ef78f..51c3c44c 100644 --- a/module/Core/Events.inc +++ b/module/Core/Events.inc @@ -1690,6 +1690,12 @@ void Core::EmitScriptLoaded() const SQMOD_CO_EV_TRACEBACK("[TRACE<] Core::ScriptLoaded()") (*mOnScriptLoaded.first)(); SQMOD_CO_EV_TRACEBACK("[TRACE>] Core::ScriptLoaded") +#ifdef VCMP_ENABLE_OFFICIAL + if (IsOfficial()) + { + ExecuteLegacyEvent(m_VM, _SC("onScriptLoad")); + } +#endif } // ------------------------------------------------------------------------------------------------