View Single Post
Author Message
SpartanK
Junior Member
Join Date: Oct 2019
Location: Cambodia
Old 10-23-2019 , 09:49   Correct way you use a common functions script
Reply With Quote #1

Say I develop multiple plugins with different features but each of those scripts use common functions, I want to make a common / base file that all the separate plugins can access, what is the correct way to set it up?

I imagine making an uncompiled include file that is referenced by the main plugins might work.

But what if I want to use that base file to execute some code when it's loaded to store data about the game that other plugins can access? I guess an uncompiled include file won't be able to run in that way.

Perhaps I need a base plugin to run some common code when it loads that other plugins can access. And I would also need an include file containing just a bunch of functions that all the plugins could include and call functions from.
SpartanK is offline