Defensive turret switching, component style?
Madin 12 Jan 2012
I have some component tower style defences for C&C3 and what I was looking to do is, that the turrets can all be built separately (has with the standard defences they replace).
But then each turret has a couple of buttons that allow you to switch to another type of turret (so each turret has a button that will allow to turn into another turret type).
How would I go about doing this?
The 3 turrets will be three separate game objects. This makes it simpler for the AI, has it can just build the defences the normal way and will not have to worry about turret switching or building composite defences.
Any ideas would be greatly appreciated!
But then each turret has a couple of buttons that allow you to switch to another type of turret (so each turret has a button that will allow to turn into another turret type).
How would I go about doing this?
The 3 turrets will be three separate game objects. This makes it simpler for the AI, has it can just build the defences the normal way and will not have to worry about turret switching or building composite defences.
Any ideas would be greatly appreciated!
Golan 12 Jan 2012
I'd suggest making them all the same object with upgrades merely switching models and weapons. In order to provide the ability to build them individually, create special versions of the default that already have a certain upgrade/model by default - this is best done through inheriting.
Madin 13 Jan 2012
Thanks! This seems to have worked reasonably well!
Of course I will find out during stress testing.
Of course I will find out during stress testing.