problem with the condition: "Terrain pathing is off"

Idontknowyou

New Member
Reaction score
33
I need to check if certain points are walkable; the condition "Terrain pathing is off" works perfectly fine for doodads and terrain, but not for destructibles and buildings. Could somebody show me a custom script that determines if a location has been made unwalkable by a building or destructible?


Edit: If there is no simple solution, I will just have to rethink my trigger

Edit: If you think I've worded this wierdly and don't understand what I am trying to ask... you should let me know = \.
 

Idontknowyou

New Member
Reaction score
33
thank you :p.... I was really hoping to have a one liner but this works i guess.

Edit: a lot of people on that forum are saying that this function is inaccurate... If somebody could post something that might work better, I'd appreciate it.

Edit: I made my own version in GUI (JASS seemed a bit unnecessary for such a simple trigger) and it seems to be working fine.
 

Idontknowyou

New Member
Reaction score
33
I prefer what I have here, short and sweet

Pathing Check
Trigger:
  • Events
    • Conditions
    • Actions
      • Item - Create Pathing_Checker at CheckPathingHere
      • Set PathingChecker = (Last created item)
      • Set ConfirmPathing = (Position of PathingChecker)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (((X of CheckPathingHere) - (X of ConfirmPathing)) Less than or equal to 2.00) and (((X of CheckPathingHere) - (X of ConfirmPathing)) Greater than or equal to -2.00)
              • (((Y of CheckPathingHere) - (Y of ConfirmPathing)) Less than or equal to 5.00) and (((Y of CheckPathingHere) - (Y of ConfirmPathing)) Greater than or equal to -5.00)
        • Then - Actions
          • Set PathingisBlocked = False
        • Else - Actions
          • Set PathingisBlocked = True
      • Custom script: call RemoveLocation (udg_CheckPathingHere)
      • Custom script: call RemoveLocation (udg_ConfirmPathing)
      • Item - Remove PathingChecker


Check pathing here is set before running the trigger, I do that so I can use this for any spell or function that requires a pathing check ( knock backs, line of sight checks, etc)
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
But you have to write these lines each time you want to use it ?
Also your solution is more innacurate and should be less efficient.

Meh, honestly i don't care about it.
I won't start a new lame war gui vs jass, we all know the end.

Sorry if you feel offended.
 

Idontknowyou

New Member
Reaction score
33
nono, I don't rewrite it everytime i need to use it, I just do this

Trigger:
  • Set CheckPathingHere = (whichever spot I'm checking)
    • Trigger - Run Pathing Check <gen> (checking conditions)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • PathingisBlocked Equal to True
      • Then - Actions
      • ...........



It's really not much less efficient than having a windwalk dummy moving around everywhere........

It works very accurately to, I've tested it a lot
 

Idontknowyou

New Member
Reaction score
33
I know it's not the most efficient trigger out there, but it works, it's easy, and it DOES NOT lag, even when run 100 times a second.

I believe you that the JASS trigger is better than my GUI trigger, but I do not know JASS, and I'd rather use a trigger that I understand than copy and paste a block of code that I only vaguely understand.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top