Multiple units in same unit class

Lord Shadow

General
Joined
Oct 14, 2005
Messages
2,005
Location
Buenos Aires
Is it possible, without them overwriting each other? The aim is to have a handful of equivalent units with different abilities.

Or do I need one class per unit?
 
Hmm. It's new and I'm not really familiar with it. Also, all of these units would exist in parallel and have separate AI flavours.

To unveil my plans a bit further, it's for my Alien Strains mod, which would add two (equivalent, reskinned) variants to each base alien species.

The aliens should be able to randomly choose between the strains when they want, say, to produce a Wolf Beetle or a Raptor Bug.
 
My brain was fried last night and I couldn't make much sense out of the proposed code.

But now it's looking mighty interesting. Will try it out! :eek:
 
Top Bottom