# Block path for an specific character

**URL:** <https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987>\
**Category:** Blueprint\
**Tags:** blocking, unreal-engine, UE4, Blueprint, question\
**Created:** [January 27, 2020, 6:56pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987 "2020-01-27T18:56:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [January 27, 2020, 6:56pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/1 "2020-01-27T18:56:03Z")

</div>

Hi guys!  
I have a question, in my game, some parts you can use a motorcycle which is a different “blueprint character”.  
I would like to block the motorcycle to walk only in the road and the other characters can walk on other places with no problems. I thought a lot about that but i don’t had any ideas so far 😕

You guys know a best way to do that? How i can block the character to walk only on a specific floor?  
Thanks!!

---

<div class="post-metadata">

**Author:** ![chrudimer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chrudimer/32/918651_2.png) [@chrudimer](https://forums.unrealengine.com/u/chrudimer)\
**Post date:** [January 27, 2020, 7:18pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/2 "2020-01-27T19:18:52Z")

</div>

Hi, would you mind sharing more information about your setup? I assume you’re talking about a player and not about an AI controller? And what should happen when the player tries to drive with the motorcycle from the road to outside the road (should the motorcycle stay on the road so collide with an invisible wall, or should the player get of the motorcycle and would have to push it on the road and get on it again)?

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [January 27, 2020, 7:37pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/3 "2020-01-27T19:37:32Z")

</div>

Hi friend! Yes, i made a simple sketch, see the road? I would like the cycle only walk on the road, if the player want to go beyond the road and go to the green area, it will collide on a invisible wall. But when the player is off the cycle it can normally walk between the two.

 ![295863-projeto-drawing-1-1.jpeg.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/b/09b82c2e93bef6fc30daf835400aff3e56b62d54.png)

---

<div class="post-metadata">

**Author:** ![M4g5o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@M4g5o](https://forums.unrealengine.com/u/M4g5o)\
**Post date:** [January 27, 2020, 7:52pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/4 "2020-01-27T19:52:53Z")

</div>

You could tag the grass then have the cycle treat it like a wall. Is the grass a landscape or a static mesh?

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [January 27, 2020, 8:00pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/5 "2020-01-27T20:00:45Z")

</div>

Hi friend! Oh, the grass is a landscape ^^ How i can work with the tag in this situation?  
Thanks for the attention!

---

<div class="post-metadata">

**Author:** ![M4g5o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@M4g5o](https://forums.unrealengine.com/u/M4g5o)\
**Post date:** [January 27, 2020, 8:27pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/6 "2020-01-27T20:27:15Z")

</div>

Select the landscape actor and tags are in the details tab near the bottom. You can then check this tag when an OnHit event is called on the cycle.

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [January 27, 2020, 8:28pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/7 "2020-01-27T20:28:59Z")

</div>

Thanks friend! i will try it!

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [January 28, 2020, 2:05am UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/8 "2020-01-28T02:05:01Z")

</div>

It worked, thanks friend!

---

<div class="post-metadata">

**Author:** ![DieggoMasamune](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dieggomasamune/32/953152_2.png) [@DieggoMasamune](https://forums.unrealengine.com/u/DieggoMasamune)\
**Post date:** [January 30, 2020, 9:59pm UTC](https://forums.unrealengine.com/t/block-path-for-an-specific-character/460987/9 "2020-01-30T21:59:00Z")

</div>

I’m using this one: “The Select the landscape actor and tags are in the details tab near the bottom. You can then check this tag when an OnHit event is called on the cycle.” Thanks M4g5o and everyone!
