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!
0
Defensive turret switching, component style?
Started By Madin, Jan 12 2012 13:45
2 replies to this topic
#1
Posted 12 January 2012 - 13:45
#2
Posted 12 January 2012 - 14:13
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.
Now go out and procreate. IN THE NAME OF DOOM!
#3
Posted 13 January 2012 - 21:10
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.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users