• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need help changing unit's movement type

Status
Not open for further replies.

maracujah

M

maracujah

Hello everyone,

I need help changing the movement type of a unit from foot to flying and vice-cersa. I haven't seen anything like "Unit - Change movement type" in the Actions list of the trigger editor.

The purpose of this is to make a unit go through obstacles when I order the unit to move to a point through triggers.

I have tried using the Unit - Turn Collision On/Off, but even though the unit will go through obstacles if I mannualy order it to, it will go aroung them if I order through triggers. After finding this out, I figured changing the unit's movement type would be the best solution.

I have also tried to do it by using a morph spell, and setting the Normal Form Unit to the unit whose movement type I want to change, and the Alternate Form Unit to a copy of it, but with a different movement type. This caused a fatal error when testing the map.

I am unsure if this can be done with Custom Scripts, as I lack any JASS skills.
 
Thank you! Replacing units worked perfectly. I had completely ignored that possibility.
 
Alternatively you could add the crow form ability to the unit using the [Unit - Add Ability] function. That will make it flying (you'd have to set it's flying height manually using the [Animation - Set Unit Flying Height] function)
 
Alternatively you could add the crow form ability to the unit using the [Unit - Add Ability] function. That will make it flying (you'd have to set it's flying height manually using the [Animation - Set Unit Flying Height] function)

About that... If it lasts more than a second.. Users may find it annoying to see that ability in their ability icon spaces.
 
Status
Not open for further replies.
Back
Top