I've got some Auto-Turrets and Perdition Turrets in my map, both will burrow themselves when idle... but once burrowed, they will never unburrow themselves. I haven't changed any behaviors on the units, the only thing I have changed is that they are now allowed to attack Air units. The units are placed via triggers and have the 'Ignore Placement' flag set. If the turrets encounter an enemy before they burrow they will attack successfully. Anyone run into this before, or have any idea what's up?
Strangely enough, if I set the 'Under Construction' flag for these units they will spawn fully built, capable of attacking, and will never burrow themselves. Weird.
I see one problem in your design: The burrowing of the turrets and then unburrowing is a morph between 2 units. If you have your turrets morph into the same unit that the normal turrets use, they will unburrow as normal turrets because you have not set the morph between your turret and the burrowed one. This may not be causing the problem, or it may be the cause, but I just wanted to point that out.
The Perdition turret, I believe, has a behavior that orders it to auto-unburrow when it detects nearby enemies. You may want to check if it only looks for ground units, or if it will also fire when air units are near.
Something else to check for you, the cost of the unit.
If the player that is getting these turrets that are built by triggers does not have the resource to have built it, it will not unburrow.
To rephrase: If the burrowed form costs 0, and the unburrowed costs 100, unless the player that owns it has the resource, it will not unburrow. So check that the costs are set properly.
Also, check to see that both the burrow and unburrow abilities of the respective unit is autocast.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've got some Auto-Turrets and Perdition Turrets in my map, both will burrow themselves when idle... but once burrowed, they will never unburrow themselves. I haven't changed any behaviors on the units, the only thing I have changed is that they are now allowed to attack Air units. The units are placed via triggers and have the 'Ignore Placement' flag set. If the turrets encounter an enemy before they burrow they will attack successfully. Anyone run into this before, or have any idea what's up?
Strangely enough, if I set the 'Under Construction' flag for these units they will spawn fully built, capable of attacking, and will never burrow themselves. Weird.
I see one problem in your design: The burrowing of the turrets and then unburrowing is a morph between 2 units. If you have your turrets morph into the same unit that the normal turrets use, they will unburrow as normal turrets because you have not set the morph between your turret and the burrowed one. This may not be causing the problem, or it may be the cause, but I just wanted to point that out.
I had this same problem and somehow I solved this. A did a few things so not sure exactly which fixed it but the last thing I did was:
Under Abilities: Perdition turret unborrow: Stats: check Ignore Placement and uncheck move blocking units.
The sentry gun unburrow works so I was basically going through and making them the same. See if the above works though.
The Perdition turret, I believe, has a behavior that orders it to auto-unburrow when it detects nearby enemies. You may want to check if it only looks for ground units, or if it will also fire when air units are near.
Something else to check for you, the cost of the unit. If the player that is getting these turrets that are built by triggers does not have the resource to have built it, it will not unburrow. To rephrase: If the burrowed form costs 0, and the unburrowed costs 100, unless the player that owns it has the resource, it will not unburrow. So check that the costs are set properly. Also, check to see that both the burrow and unburrow abilities of the respective unit is autocast.