| 06-22-2005, 06:55 PM | #1 |
I want to be able to put any unit (or at least 2 unit types) inside a terran bunker and have it be able to shoot out of it. If this is possible with just abilities awesome, but triggers would be fine too:( I used to use battle stations but I want firebats and possibly heroes to be able to go in bunkers (in addittion to normal marines)...I tried setting it up with triggers by turning off collision for entering units and moving them into the middle of the bunker and making them invulnerable...but I can't get their speed to 0 or find a way of making them trapped in the bunker until a trigger lets them out.... |
| 06-22-2005, 07:05 PM | #2 |
Give the bunker the pathing map of a magic cell destructible. It's a little box you can stick the units inside of then. Or you can change the gameplay constants to set the minimum move speed to 1, so a unit basically can't move at that speed. Then you can pretty much disable movement. |
| 06-22-2005, 07:30 PM | #3 |
You could also just remove the Move ability ('Amov') from the unit and add it again later. I remember that the Terran Bunker idea had been thoroughly explored a while back, and a few people came up with one solid solution. I'd search the trigger forum for that. |
| 06-22-2005, 08:44 PM | #4 |
Exactly what Panto said would be my choice as well. The other option is pausing the unit while inside, and then selecting a dummy unit. |
| 06-23-2005, 03:58 PM | #5 |
thanks guys...but what Amov ability are you talking about...i went to remove ability in the triggers and there is no Amov ability in the unit\hero or item section |
| 06-23-2005, 04:06 PM | #6 |
Use custom Script: Custom Script : call UnitRemoveAbility(-unitvariablehere-, 'Amov') to get the unit variable put it in another trigger and convert it to custom text. |
| 06-24-2005, 03:47 AM | #7 |
thanks again, that script for removing the ability worked, but how do I add the ability back again?? I tried UnitAddAbility(unit, 'Amov') and UnitAddAbilityBJ('Amov', unit) but it's not working I also tried the pathing map idea and it sort of worked...i tried both magic pen pathing maps..but guys kept escaping just a little bit...is there some way you can make the confinement smaller, maybe they were just going to the edges......does selection size, collission size, or image scale stretch the pathing map? |
| 06-24-2005, 02:29 PM | #8 |
actually i think i figured the pathing map idea out....for some reason when I try to remove an entering unit's ability as it is being put inside the bunker by a trigger, it screws the whole thing up...but if i don't it works fine. Thnx |
| 06-24-2005, 04:52 PM | #9 |
change unit speed to 0, hide him. When he exits set movement speed to default and unhide him. |
