Warcraft III resources & community, 2003–2006 · archived

Mounting

32 posts
#1

Mounting

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?
#2
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.
#3
Using spell is wrong idea, you must make it trigger/jass based.

I already working on some mounting system but it stills buggy
#4
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.
#5
i would make one, but its far below my level, and im too lazy.

im kind of tied up with helping clannies learn JASS, making a map, debugging another map, and making a few systems.
#6
You may turn collisions off, but there is problem mount will go through all obstacles - thats problem I already solving
#7
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.
#8
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.
#9
Yes, and SetUnitX/Y is also faster than trigger, but there still problem with cfollisions
#10
with collisions? plz specify what you mean.
#11
I'm not exactly a JASS expert, so it would be great if anyone could post more details on how am I supposed to use SetUnitX/Y...
#12
in GUI, it should look something like this

Custom Script - call SetUnitX( whichUnit, GetUnitX( whichOtherUnit ) )
Custom Script - call SetUnitY( whichUnit, GetUnitY( whichOtherUnit ) )
#13

Re: Mounting

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. :)
#14
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:(
#15
A) i did say to use a custom model

B) you can check if the terrain where the guys are it pathable.