| 03-28-2007, 01:25 PM | #1 |
I dont think there is a trigger for it (would prefer a trigger). Does any1 know how to change the movement- type [meaning foot,fly,horse,hover] with a jass command. I know there is a storm crow form but I dont think there is a command to execute storm crow form on that hero once u give the ability to a hero.Is there? My idea is to make a simple shockwave spell that upon casting, lifts u up into the air (means u become a flying unit now).And while in the air u gain a cool ability(I am thinking 100% bash for 1 hit). I guessed i can do it wif storm crow form such that casting it releases a shockwave[gonna hav 2 create dummy unit that cast it] but u cant target a location with storm crow form I press ctrl+D in object editor. The command for movement-type is movetp . Can please tell the action-trigger that modifies it. I wanna modify it from foot to fly. Thanks in advance I tried the add classification trigger but that didnt work cause that just classifies wat kinda unit u are [like mechanical,ancient]. I dont want it as animation since i want the hero to be controllable while jumping in air. |
| 03-28-2007, 01:48 PM | #2 |
just use storm crow form. Let the hero cast it by issueing an order with no target. Be sure that the ability costs no mana and such. You could also use the chaos ability, but then you'd have to trigger the flying upwards. Or alternatively you could just give storm crow, remove it, and then change the unit's flying height and give him abilities. |
| 03-28-2007, 03:32 PM | #3 |
Cannot dynamically change movement type. |
| 03-28-2007, 03:40 PM | #4 | |
Quote:
Hmm when u say the storm crow, then remove it. I assume that is done by triggers and it changes the movement type to fly while storm crow is given to that unit. When u say give storm crow ability, do u mean use the add ability trigger? cause that only gives the ability to the player,he still has to activate it. How do i make it such that when i give the storm crow to the unit,it is already activated. Sorry for the noobness,I dunno how to do this 1 This way i can juz trigger a shockwave spell to give and remove storm crow which gives the effect I cant seem to find a buff for storm crow either,I dont think there is 1. |
| 03-28-2007, 04:10 PM | #5 |
call UnitAddAbility(u, 'Amrf') call UnitRemoveAbility(u, 'Amrf') just use those two lines of code and now that unit can have its fly height set using SetUnitFlyHeight just like any normal flying unit. yes, it's a glitch, but it always works. |
| 03-28-2007, 04:27 PM | #6 |
It isn't a flying unit, but can have the fly height set. |
| 03-28-2007, 05:20 PM | #7 | |
Quote:
Thanks for the help but i really need it to jump over other units. Guess i will wait for infrane's idea. |
| 03-28-2007, 07:50 PM | #8 | |
Quote:
You can set its collision off via triggers and move it with SetUnitX/Y to guarantee going 'through' (actually over) units. |
| 03-28-2007, 08:19 PM | #9 | ||
Quote:
Quote:
Woah, it works lol.It really works lol. Thanks alot!!!! :) Really glad i found this forum. Using triggers to add and remove storm crow works lol. Another way to do it that i juz found out is to cast storm crow form, then use triggers to wait few secs[fly] and then manually remove storm crow form [this straight away causes the unit to be ground again] . Then u still have to use remove ability twice to set a cooldown for it. Its not as good as the above mentioned method of course |
