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

Mounting

Status
Not open for further replies.
Level 2
Joined
Nov 13, 2005
Messages
6
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?
 
Level 2
Joined
Apr 23, 2006
Messages
7
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.
 
Level 6
Joined
Apr 4, 2005
Messages
299
Using spell is wrong idea, you must make it trigger/jass based.

I already working on some mounting system but it stills buggy
 
Level 2
Joined
Nov 13, 2005
Messages
6
fefeoxy said:
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 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.
 
Level 6
Joined
Apr 4, 2005
Messages
299
You may turn collisions off, but there is problem mount will go through all obstacles - thats problem I already solving
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
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.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Dr Super Good said:
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.

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.
 
Level 2
Joined
Nov 13, 2005
Messages
6
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...
 
Level 9
Joined
Jun 26, 2005
Messages
511
AqoTrooper said:
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?


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. :)
 
Level 6
Joined
Apr 4, 2005
Messages
299
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:(
 
Level 6
Joined
Apr 4, 2005
Messages
299
A) It is wrong idea

B) It is better, but not such good idea. Even if you can check mount is inside obstacle, what you suppose to do?
 
Level 6
Joined
Apr 4, 2005
Messages
299
If is that same thing, then it is useless, because turn collisions off make unit ignore obstacles but it is still treated as obstacle and that is my problem!!!
 
Level 6
Joined
Apr 4, 2005
Messages
299
ofc, but I need mount to be controled and targeted and this is imposible for loctus. So, problem lasts...
 
Level 2
Joined
Dec 18, 2005
Messages
28
why dont you make the rider a locust, so you can control the mount, so the rider can attack while the mount is moveing and all you have to add is an trigger that makes the rider attack an target if the mount is ordered to attack one
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Why has no one come up with the idea of making 2 units for the "gnoll" one has colision of normal amounts the other has vituly no colsion what so ever.
Also set the mounts colosion to minimal amounts so that they do not interfear with wach other pathing.

If im not mistaken all the function "Turn Unit Pathing On/Off" is that it means it ignores the pathing map thus can walk anywhere.

If you set the colision of a unit to 0 or something low in the object editor it will still check for pathability and will not ignore pathing map as well as it is vitualy ignored as an obstical.
 
Level 6
Joined
Apr 4, 2005
Messages
299
Right....thanks for ideas and sugestions, but in case of preserving my psychycal health, I will no longer continue in this discusion until I find way to mount properly:)
 
Status
Not open for further replies.
Top