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

[Solved] Do you know a practical way to solve this?

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,929
First see this video to understand. Demostracion.mp4
Assuming you saw the video:
I wanna know if there is a practical way to get the unit going through the wall even if the path its unlocked.
I didn't try it for myself because I know my solution will be unnecessarily tricky, and I wanna know if there is a practical way to do that and by the way learning something new.
 

Attachments

  • Demostracion.mp4
    48.9 MB · Views: 63
Last edited:
Level 24
Joined
Jun 26, 2020
Messages
1,929
You have a trigger that allows passage if you are on one team (how?), and if you unlock the longer route around, the path-finding will select the longer route around?
Yes.
How does the team-dependent passage work when it's locked?
Its very simple in reality.
Captura1.PNG

Captura2.PNG

Captura3.PNG

He did it, because he doesn't have option, I wanna make the unit use the short route yes or yes.
 
Level 11
Joined
Dec 11, 2009
Messages
234
You could get rid of pathing blockers completely and just push restricted ground units when they enter the area (and making that area thinner), while making exceptions to your draenei units or whatever.

However this would result in units trying to go through the barrier and getting stuck there (being too "dumb" to walk around, that's how it would be seen from a regular player perspective). This could be solved with issuing orders by trigger (go to waypoint 1, then to waypoint 2, etc), but it's getting somewhat complicated from here on. I think them getting stuck is not a big deal and it's an acceptable downside.
 
Level 24
Joined
Jun 26, 2020
Messages
1,929
@BizzaroFukuro Sorry but
You could get rid of pathing blockers completely
That's not an option, I don't wanna the other team can pass.
(and making that area thinner)
I can't make it more thinner, (Directly they can't pass).
This could be solved with issuing orders by trigger (go to waypoint 1, then to waypoint 2, etc), but it's getting somewhat complicated from here on.
I wanna know if there is a practical way to get the unit going through the wall even if the path its unlocked.
I didn't try it for myself because I know my solution will be unnecessarily tricky, and I wanna know if there is a practical way to do that
 
Level 11
Joined
Dec 11, 2009
Messages
234
The solution is to have no pathing blockers and instead when the unit enters the region and is not allowed to pass you use SetUnitX/Y to move the unit back some distance away from the region. SetUnitX/Y do not cancel a unit's current orders so the unit will constantly try to path through the wall but fail.
That's exactly what I suggested, but I think topic starter misunderstood.
SetUnitX/Y do not cancel a unit's current orders
SetUnitPosition(x,y) issues a stop order, which probably should be preferred in this case.
 
Status
Not open for further replies.
Top