1 decade ago by Cavalier
Is it possible to get the default values of an entity without having to spawn one?
I mean, to use
I need to use those in order to actually spawn one.
Is it possible to get those values above without having any superunit present (something like
I mean, to use
ig.game.getEntitiesByType() or ig.game.getEntityByName(), I need to have said entity already present in the current level. However, there are some values that are currently a unit's defaults:
EntitySuperUnit = ig.Entity.extend({
unitName: 'Super Unit',
unitPrice: 150,
trainingTime: 6,
I need to use those in order to actually spawn one.
Is it possible to get those values above without having any superunit present (something like
ig.EntitySuperUnit.unitName) or will I have to spawn one, get the values and then kill it? 