Jump to content

Recommended Posts

I have a weird issue with the class Reflectors... I have a base vehicle where I defined common reflector subclasses and when I inherit this custom base class to create new config entries for other vehicles I am facing issue if I add a new subclass to the Reflectors which is defined in base class.

When I check the vehicle it shows actually all the base Reflectors which I defined in base class in addition to the extra class which I add only by the inherited vehicle but they do not work!

Why inheritence is not working by Reflectors class? Does anybody has any idea?

Share this post


Link to post
Share on other sites

It has same behavior as turrets, eden attributes and probably some other meaning you have to redefine it. Small example

class Veh1: something
{
	class Reflectors 
	{
		class Light1 {blablabla};
	};
};
class Veh2: Veh1
{
	class Reflectors: Reflectors
	{
		class Light1: Light1 {};
		class Light2 {blablabla}
	};
};

You can search for turrets inheritance related topics to learn a little bit more about it.
 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×