I'm thinking about making a unit for my map that resembles the Kirov from the Red Alert series in many ways. The problem is that I have no idea of how to create such a weapon.
What it needs to do is to drop a bomb (a missile in editor terms I guess), which does not hone in on it's target, but rather falls straight down below the location where it was dropped. Does anyone know how to do this?
I was also wondering if there is a way to limit the amount of a specific unit a player can have at a time. I have a controllable Spider Mine on my map, but it would become too overpowered if the player could have more than a couple at a time. Is there any way I can set it to something like max 3 units at a time? I know how to allow a max of 3 units, but I have no idea how to refill a charge when a unit dies.
I don't know about how to do the Kirov, but regarding the mines, you could use triggers to detect when the player already has 3 of them, and disable the ability to make more until 1 of them is destroyed.
It has to be done through triggers? There's no way to do it with the data editor? I'm not really at the trigger development stage on my map, and I don't like creating triggers before I get to that stage as I only end up having to edit them a lot.
With the bomb thing, you mean it would drop from an air unit and explode once it hits the ground? Or just a bomb that is created at the location of the caster, stays in place, and explodes after a short period of time?
If you mean the latter, than it can easily be done by making an effect - instant type ability that creates a custom unit, give the units actor whatever model you want the bomb to be, then give the bomb unit an ability that is autocast and autocast on (flags I believe) that does aoe dmg includes "self" as a target. This is a good way to make a bomb similar to morph ball bombs in the metroid games.
I'm thinking about making a unit for my map that resembles the Kirov from the Red Alert series in many ways. The problem is that I have no idea of how to create such a weapon.
What it needs to do is to drop a bomb (a missile in editor terms I guess), which does not hone in on it's target, but rather falls straight down below the location where it was dropped. Does anyone know how to do this?
I was also wondering if there is a way to limit the amount of a specific unit a player can have at a time. I have a controllable Spider Mine on my map, but it would become too overpowered if the player could have more than a couple at a time. Is there any way I can set it to something like max 3 units at a time? I know how to allow a max of 3 units, but I have no idea how to refill a charge when a unit dies.
I don't know about how to do the Kirov, but regarding the mines, you could use triggers to detect when the player already has 3 of them, and disable the ability to make more until 1 of them is destroyed.
@dgh64: Go
It has to be done through triggers? There's no way to do it with the data editor? I'm not really at the trigger development stage on my map, and I don't like creating triggers before I get to that stage as I only end up having to edit them a lot.
I'm (perfectly?) sure you can use a requirement, to stop the player from building/creating/spawning more than three mines.
@Nahotnoj: Go
I meant as in spawning a bomb, then letting it fall to the ground and explode once it hits.
I tried that, but I couldn't figure out how to make it set to a maximum of three. I guess I'll have to look again.