You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Called when g_pScriptVM has been fully initialized, this is where VScriptClass.RegisterInstance and VScriptFunction.Register should be called
416
+
* @note This forward does not get called on plugin lateload, use VScript_IsScriptVMInitialized to determine whenever to manually call this forward
417
+
*/
418
+
forwardvoidVScript_OnScriptVMInitialized();
419
+
420
+
/**
421
+
* Returns whenever g_pScriptVM has been initialized, useful for plugin start to determine whenever to call VScript_ResetScriptVM or VScript_OnScriptVMInitialized if this were to return true
422
+
*
423
+
* @return True if script vm is initialized, false otherwise
424
+
*/
425
+
nativeboolVScript_IsScriptVMInitialized();
426
+
413
427
/**
414
428
* Deletes g_pScriptVM and creates a new one. This should be used when VScriptClass or VScriptFunction has been modified, including adding new functions to class
415
429
*/
@@ -675,6 +689,7 @@ public void __pl_vscript_SetNTVOptional()
// If script vm is already initialized, force reset it as we can use modified CBaseEntity.
46
+
// If were only calling VScriptClass.RegisterInstance or VScriptFunction.Register, only need to manually call VScript_OnScriptVMInitialized() without resetting it.
0 commit comments