• 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] How can I detect the walkable areas?

Status
Not open for further replies.
Level 16
Joined
Jun 24, 2009
Messages
1,409
I just restarted my old fun map project and I've noticed something wrong. There is a Jump ability but with it you can jump out of the playable map area. So for example you can jump into the water or into a decoration and you can only get out by jumping in the correct direction. How can I detect if an area is walk able? In the ability there is a variable that can config the maximum jump distance and I want to detect the farthest possible landing area.
I've only got one solution in my mind and I'm not even sure that it works and so I can't try it right now :/
So that is the idea:
  • TempPoint = XYZ(loc 'n stuff)
  • Create 1 Foot unit at XYZ
  • TempPoint2 = Position of Foot unit
  • If position of foot unit equal to TempPoint then allow jump there.
Will it work? If not, how can I make it?
 
Status
Not open for further replies.
Top