I was wondering how you'd go about make a mine unit, sort of like the ones Vultures had in SC1. I want my unit to just place a mine somewhere and have it sit there. But when an enemy unit gets within range the mine will go towards it and detonate. I get the sneaking suspicion something like this has to do with triggers, but I have no clue how I'd go about doing it. Any help would be appreciated.
Would be pretty easy to do in the data editor.
Vulture has ability to lay spider mines (create unit), spider mine has burrow/unborrow and attack. attack is auto cast.
Hmm, ok well so far I have a point defense drone that can fly around, I gave it the baneling explode attack and it explodes like a nuke. So far it's working decently enough, only I can't get it to attack on it's own. Even when I attack move, or place it right next to an enemy, it'll just sit there. If I manually tell it to attack, it performs fine. Any idea how to make it automatically attack?
Edit: Ok I got it to automatically attack but I've hit another problem. I gave it the baneling volatile burst attack, but it's not self destructing. It just flies around shooting nukes at melee range, rather then blowing up as a nuke. It worked correctly before, before I started messing with the auto-attack and whatnot. I don't know what I coulda messed up :(
Edit2: Ok nvm, I got it to work. Thank you guys for helping me out, it's working perfectly now :D
I was wondering how you'd go about make a mine unit, sort of like the ones Vultures had in SC1. I want my unit to just place a mine somewhere and have it sit there. But when an enemy unit gets within range the mine will go towards it and detonate. I get the sneaking suspicion something like this has to do with triggers, but I have no clue how I'd go about doing it. Any help would be appreciated.
@Colt556: Go
Would be pretty easy to do in the data editor. Vulture has ability to lay spider mines (create unit), spider mine has burrow/unborrow and attack. attack is auto cast.
Hmm, that's a good idea. But what about movement? Is it possible to make it so it can move, but that the player can't move it themselves?
Uncommandable / unselectable? Look at force field
Hmm, ok well so far I have a point defense drone that can fly around, I gave it the baneling explode attack and it explodes like a nuke. So far it's working decently enough, only I can't get it to attack on it's own. Even when I attack move, or place it right next to an enemy, it'll just sit there. If I manually tell it to attack, it performs fine. Any idea how to make it automatically attack?
Edit: Ok I got it to automatically attack but I've hit another problem. I gave it the baneling volatile burst attack, but it's not self destructing. It just flies around shooting nukes at melee range, rather then blowing up as a nuke. It worked correctly before, before I started messing with the auto-attack and whatnot. I don't know what I coulda messed up :(
Edit2: Ok nvm, I got it to work. Thank you guys for helping me out, it's working perfectly now :D