| 01-10-2006, 09:52 PM | #1 |
Is it possible to remove Aloc, I've tried "call UnitRemoveAbilityBJ( 'Aloc', GetTriggerUnit() )", doesn't seem to work, do locust units register in the "Unit enters region" event? I read somewhere that they don't register in "pick all unit" functions Edit: They do register in "Unit enters region" (i put in a game message), does anyone know what else could be going wrong? |
| 01-10-2006, 10:04 PM | #2 |
call UnitRemoveAbility ( GetEnteringUnit ( ) , 'Aloc' ) should work fine. post that trigger btw. |
| 01-10-2006, 10:13 PM | #3 |
You can't remove Aloc, just add. You can recreate the unit/hero thus. |
| 01-10-2006, 10:15 PM | #4 |
Didnt know that. |
| 01-10-2006, 10:16 PM | #5 |
this has been asked a lot, I think you could try searching if anyone has posted an effective answer but as far as I know: (removing the ability will not work) a) if you add aloc to a unit and then use chaos to change it, it cannot be ordered but it can be targetted to attack or for spells. b) I forgot what happens when you hide/unhide the unit, try it, but it is not a full answer. probably the best way to do it, is to replace it with another unit of its type and set all its attributes (health, mana, etc) to what it was. This might be difficult for heros and for units that have assigned variables since you will have to re-assign them, but thats the best way as far as I know |
| 01-10-2006, 10:43 PM | #6 |
As Taur said, doing both things will remove the effect of Aloc from the unit. |
| 01-10-2006, 10:54 PM | #7 |
really? I am reasonably sure it wont, but it could cause a lot of object editing for the chaos things since you would in theory need a chaos for every unit type. Another thing you might want to try is adding a morph ability, make the unit turn into another, turn it back and remove the morph ability. like the way people do the "flight tricks" |
| 01-11-2006, 12:21 AM | #8 | ||
Quote:
Quote:
Adding Chaos to the unit will allow the unit to be attacked (u can right click) but u cannot select unit Hiding-unhiding makes the unit selectable but not attackable |
| 01-11-2006, 12:22 AM | #9 |
hide the unit remove aloc unhide the unit. The problem is that the tooltip that appears when you move the mouse over the unit and says the player's name or the unit's name if it is a unit will no longer appear. |
| 01-11-2006, 12:36 AM | #10 |
holy tinklejabber thank you lord, bah cant give rep to you again |
| 01-11-2006, 12:45 AM | #11 | |
Quote:
|
| 01-11-2006, 01:05 AM | #12 | |
Quote:
|
| 01-11-2006, 01:09 AM | #13 |
**bit more off topic* what is this hp bar made with floating text, ive heard it mentioned a few times before |
| 01-11-2006, 01:10 AM | #14 |
Actually the best thing you can do is hide the normal unit, create another one, give Aloc to it, then when you need to , remove the Aloc unit and show the other unit |
| 01-11-2006, 01:15 AM | #15 | ||
Quote:
Quote:
|
