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

Unitwalking

Status
Not open for further replies.
Level 3
Joined
Jun 9, 2012
Messages
25
Hi,
is there any way to make a unit able to walk through other units, but not able to walk over cliffs,doodads ect. using triggers?
It's for a single player RPG.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
If you make it's collision size = 1 i think you can make it go "almost" through other units. And if your doodads and destructables are near enough, they shouldn't be able to walk through. Unit won't go through cliffs if it's not a flying unit.
 
Level 18
Joined
May 11, 2012
Messages
2,103
If you make it's collision size = 1 i think you can make it go "almost" through other units. And if your doodads and destructables are near enough, they shouldn't be able to walk through. Unit won't go through cliffs if it's not a flying unit.

how come my unit goes? It's ground unit with collision turned off and I can go over cliffs (which sucks tho...)
 
collision off is a big difference from collision of 1.

u can make a system to move the unit through other units. it would be a hard system to make since u would have to detect the area around u every iteration to make sure it doesnt walk over a cliff. this would be the hard part since u would have to detect the path the unit would take to the destination point.

collision size of 1 is probably ur best way to do this.
 
Level 3
Joined
Jun 9, 2012
Messages
25
Thanks to all of you. I knew there was a difficult way with a system and so on.And for collision size = 1 i would have to create another unit, to make the original unit be able to activate it.

If your request is an ability, then try basing it on Wind Walk with -1.00 Transition Time, so the unit won't go invisible.

That really helped me alot. Didn't know that before. Thanks again.
 
Level 30
Joined
Jul 23, 2009
Messages
1,033
I'm gonna have to dig this up. I'm doing the same thing and I tried windwalk with -1 transition time but when I use this function it blocks out all transparency modifications to the unit.

Here is the scenario: I need the unit to be able to walk through units without being invisible. Using -1 transition time fixes this but the unit will look normal. The problem here is that I still want the unit to go transparent without being invisible but as stated I cannot do this to the unit while it is windwalking :(
 
Level 30
Joined
Jul 23, 2009
Messages
1,033
  • Animation - Change Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
50% transparency is the same as invisible units, I think.

If you try doing this on a unit that is windwalking you will see that nothing will happen. As mentioned you cannot change transparency on units that are wind walking and that's the problem. Isn't there any other way to make a unit ignore unit collision so that I can use this method to make the unit transparent?
 
Status
Not open for further replies.
Top