| 09-29-2007, 06:37 AM | #1 |
hi, how do you allow a unit to turn but disable other movement? i'm trying to make a tower that always faces the unit it's attacking. i've tried a trigger that periodically changes the facing of the tower: Trigger: Untitled Trigger 001
any help is appreciated thanks |
| 09-29-2007, 06:54 AM | #2 |
This would set its facing: Trigger: Trigger: As for your first question, try going into gameplay constants and setting "Movement - Unit Speed - Minimum" to 0 and then creating an ability based off of endurance aura that gives a -1000% movement speed bonus. After that, create a new spell based off of "spell book" and have it's only spell (change the min/maximum spells to 1 for the spellbook) be the spell you just created. Then, (in the Object Editor) give that spellbook ability to any unit you want to not be able to move but still be able to turn. Last, set up the following simple trigger: |
| 09-29-2007, 08:19 AM | #3 |
if a unit is issued an order targeting a point then told to stop dont they turn but not move? event unit issued order targeting a point condition = the tower thing action order triggering unit to stop as for attacking maby an phoenix fire ability if this stops it from attacking... |
| 09-29-2007, 10:27 AM | #4 | |
Quote:
if i set the base move speed to 0, i lose the move button from the command card, which i need for the unit to be able to turn. |
| 09-29-2007, 10:40 AM | #5 |
You set Minimum move speed, in game constants, to 0, so the -1000 unholy aura reduces move speed to 0. |
| 09-29-2007, 11:46 AM | #6 |
yeah, I did that. in game constants the minimum move speed is 0, and "Movement - Speed Minimum" in the unit's properties is 0 as well. the units movespeed still appears to be 1 |
| 09-29-2007, 12:06 PM | #7 |
suck Tc pawnz... i just had this problem and solved it. simple add Night Elf "Root" ability (check the "can turn" flag) and tada thats all =) and you can trick a bit with it. |
| 09-29-2007, 12:43 PM | #8 | |
Quote:
works brilliantly, thanks everyone. |
