I tried to do this myself but I ended up being way off track... my question is, how can I make one unit mount another? For instance, lets say I want to make gnolls that ride lizards, how would I do that?
apart from the fact that gnolls don't have a mounting animation, you could do either of the following:
use mount/dismount based spell (Archer and Hippogryph) to switch between 2 models; either mounted or dismounted.
set gnoll's collision to 0 and unselectable make him hover instead and put the lizard right below the gnoll, then write a trigger that moves the gnolls position to that of the lizard's. The problem with this is 1. you would be controlling the lizard, 2. the portrait would show the lizard not the gnoll =(
that's what I can think of for now. There might be a even better solution.
fefeoxyset gnoll's collision to 0 and unselectable make him hover instead and put the lizard right below the gnoll, then write a trigger that moves the gnolls position to that of the lizard's. The problem with this is 1. you would be controlling the lizard, 2. the portrait would show the lizard not the gnoll =(
That's what I tried to do... well, execpt I set the Lizard's collision to 0 and make it unselectable (instead of the gnoll), which solves many problems.
My problem is with the 'trigger that moves the gnolls position to that of the lizard's'. I made one, but it's buggy and the gnoll can't attack because of it. And it also only works with one Gnoll/Lizard unit, while I can have many in the map.
LOL this is a funny topic. . . Well actualy not its just funny that you dont know how to move a unit and still let it attack with triggers.
You must use SetUnitX() and SetUnitY() and it will move the unit and still attack. Set a unit to a location or any functions like that will NOT work since it moves the unit and disruptss its order que (like pressing STOP all the time).
I do not recommed this idea if the map will use multiple units that will mount since for a unit to move smothly the minimum is 25 moves per sec and so will lag horiably with 30+ mounted units.
Dr Super GoodI do not recommed this idea if the map will use multiple units that will mount since for a unit to move smothly the minimum is 25 moves per sec and so will lag horiably with 30+ mounted units.
yup, the best way to do that is just to make custom models. Even 25 moves per sec isnt all that smooth, anyways. This would be fine for an AOS, but not really and other kind of game.
AqoTrooperI tried to do this myself but I ended up being way off track... my question is, how can I make one unit mount another? For instance, lets say I want to make gnolls that ride lizards, how would I do that?
there is a way...its not really nice, infact its petty funny, make the lizard that has a attachment on the chest with a gnoll as a model.
collision problem is when you teleport (SetUnitX/Y) rider on mount, then mount will be blocked by rider. If you turn collisions of rider off, nothing is solved, because rider is still obstacle for mount. If you turn collisions of mount off it is working, but you can go trough units, buildings, gates, cliffs and any other obstacles - and that is that problem