baso88 / SC_AngelScript

Sven Co-op AngelScript documentation, tutorials, sample code and tools
41 stars 4 forks source link

[Request] Built-In hook PluginReloaded() #51

Open MrOats opened 7 years ago

MrOats commented 7 years ago

Would be nice to have a separate procedure for when as_reloadplugin(s) is called for the plugin instead of having to take care of it when it first loads. Such as defining a Scheduler object twice on first load, and having to redefine it on as_reloadplugin(s).

Martin-H2 commented 7 years ago

a workaround for now:

alias asr "clear; as_reloadplugins; restart"

this makes plugins debugable, while staying on the server

incognico commented 6 years ago

Either this should be a PluginUnloaded() Hook or you are doing something wrong.