So in our train game, we have a system which creates an oop object for each carriage.
I am now wondering if it is possible to get the object in other scripts, and if so, how it is possible
So in our train game, we have a system which creates an oop object for each carriage.
I am now wondering if it is possible to get the object in other scripts, and if so, how it is possible
One choice I would go by, I havent tested it though, is using a BindableFunction. You could create one in your script, and set the .OnInvoke
callback to return your OOP object.
Try ModuleScripts. They work wonders.