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.
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.