• 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] Detecting pathing at a point

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
I have a custom movement system that involves moving a unit rapidly.

What I need: to detect if a point is walkable. I want to prevent moving if I've put down a path blocker (ground).

I've tried the action (Terrain pathing at <point> of type Walkability is off) Equal to True
- and that will detect cliffs, but it does not detect trees or path blocker doodads.

I know there's a tricky system involving putting down an item and then seeing if the item is where you put it...but that sounds rather complex. If I have to do that, I will. I thought it would be wise to first ask if there a simple way to detect a path blocker with an action.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
check the coordinates, when the unit being moved is not in the proper place (unit_x not equal to computed x_pos, same with y coordinate) then the point is unpathable.
 
Level 6
Joined
Oct 1, 2012
Messages
166
I don't know if it's what you need, but about treed or items you can detect it. Simply check whether or not there's an item or a tree or any other destructible via triggering in a small range (50, maybe?) of a target point.
 
Level 14
Joined
Aug 30, 2004
Messages
909
Thanks all.

I'll take a look at that tutorial. I found a brief work around by using one of my terrain palettes as the cliffs I'm trying to avoid and just detecting that. That seems inefficient though for doodads and the like; I think I'll use one of the systems you guys linked.

+rep all around
 
Status
Not open for further replies.
Top