Notifications
Clear all

Traversal narrow space Issue

12 Posts
3 Users
9 Reactions
30 Views
7cda2610241cc41b3cc8b65195fbfcc4abaf7ebe420ad5276e4f5c53e3f5f250?s=80&d=mm&r=g
(@jstudios)
Eminent Member
Joined: 4 months ago
Posts: 19
Topic starter   [#49]

Hello, I’m having an issue with the narrow space system. I dropped it in my level then added the camera ref, but I don’t know what I’m doing wrong. The character in player editor enters the narrow system and gets stuck. I cannot move. please help thank you.



   
Quote
Farshad
(@farshad)
DEVELOPER Admin
Joined: 4 months ago
Posts: 257
 

Posted by: @jstudios

Hello, I’m having an issue with the narrow space system. I dropped it in my level then added the camera ref, but I don’t know what I’m doing wrong. The character in player editor enters the narrow system and gets stuck. I cannot move. please help thank you.

Hey, good question.

It’s likely that the narrow you placed in the level is a bit too long, which is ok. Inside BP_Narrow and the InsideLineTrace function, there is a fixed distance value set to 150. You can increase it, for example, to 250 or even higher, so that the character can move through the wall properly and reach the end.

This value should probably be exposed to the editor, or alternatively, we could apply a calculation to automatically adjust it based on the wall length, so the appropriate value is set dynamically according to the size of the wall. 

Thanks for your great question. I added this to the list for a quick update.

 



   
JStudios reacted
ReplyQuote
Farshad
(@farshad)
DEVELOPER Admin
Joined: 4 months ago
Posts: 257
 

@JStudios

Also, I forgot to mention, please make sure there is enough space between the walls for the player character to fit inside. If the gap is too narrow, the character will not be able to move through it it and may get stuck.

 

 

 



   
ReplyQuote
7cda2610241cc41b3cc8b65195fbfcc4abaf7ebe420ad5276e4f5c53e3f5f250?s=80&d=mm&r=g
(@jstudios)
Eminent Member
Joined: 4 months ago
Posts: 19
Topic starter  

@farshad I tried adjusting (InsideLinetrace) and nothing I even dropped the BP_Narrow in a empty area and set up the Camera Ref just to see if it was anything blocking or interfering and it seems just to not work?



   
ReplyQuote
Farshad
(@farshad)
DEVELOPER Admin
Joined: 4 months ago
Posts: 257
 

@jstudios You need to have the walls around BP_Narrow. Please copy and paste the BP_Narrow (including both walls and its camera setup) from the demo level into a new level and test it there. If it still doesn’t work, watch the video and check which value gets printed after adding those two Print String nodes when you enter between the walls and try to move. Does it return 1 or 2?

Also, please verify the collision settings of the walls you placed. Are they set to Default, or something else? The trace channel should not be set to Ignore Visibility



   
ReplyQuote
Af69c77078507fc16023925cc1245dccb046d506e5ec287a0f25600d0a3c957a?s=80&d=mm&r=g
 SMK
(@smk)
Active Member
Joined: 4 days ago
Posts: 5
 

@Jstudios were you able to figure out the issue, since I am having exactly the same problem.   About 5% of the time, it all works as intended, with the exception that the character doesnt ever return to its normal running state at the end of the narrow space.  The other 95% of the time, the character gets stuck as soon as it enters the narrow space and doesnt move anymore. 


This post was modified 2 days ago by SMK

   
JStudios reacted
ReplyQuote
Af69c77078507fc16023925cc1245dccb046d506e5ec287a0f25600d0a3c957a?s=80&d=mm&r=g
 SMK
(@smk)
Active Member
Joined: 4 days ago
Posts: 5
 

@Farshad  i have some insight, if that can help you find out what's wrong.  I am using the metahumans BP.  It does seem that, when I interact when the Narrow Space, the character gets stuck if it is interacting in just about the first half of the box that it needs to overlap.  And if i walk further into the narrow space, at the very end of the collision box StartEnd, it works as intended, with the exception that the character keeps walking infinitely in its NarrowSpace way,  even if it crosses either or both of the StartEnd boxes. It keeps walking sideways no matter what. Also, the ""Moving from the Narrow Point" message keeps printing as long as im moving (whereas it only appears one, in the Output Log, when the character is stuck).

Any insight?


This post was modified 2 days ago 2 times by SMK

   
JStudios reacted
ReplyQuote
Farshad
(@farshad)
DEVELOPER Admin
Joined: 4 months ago
Posts: 257
 

@smk Thank you for the explanation. Could you please send a video showing how you are placing the Narrow actor in your new level? This will help us better understand how the issue occurs on your side.

Also, an update is already planned for this feature, which will further improve the system.

Thank you!



   
JStudios reacted
ReplyQuote
Af69c77078507fc16023925cc1245dccb046d506e5ec287a0f25600d0a3c957a?s=80&d=mm&r=g
 SMK
(@smk)
Active Member
Joined: 4 days ago
Posts: 5
 

Here is the video!  I've tried with narrower and wider walls, ive tried with the BP at multiple heights. Ive tried making the loop box bigger, smaller, etc.  I'm honestly at a loss.  When I started, I just dragged the BP "as is" and the issue was already present. Also, ive tried comparing with the settings in the Demo Map, but cant figure out why yours work well and not this one.   Thanks a lot!

EDIT: Whoops, video file too large. Here it is:  https://we.tl/t-OE1YXL7kvQ5ig0vO


This post was modified 2 days ago by SMK

   
JStudios reacted
ReplyQuote
Farshad
(@farshad)
DEVELOPER Admin
Joined: 4 months ago
Posts: 257
 

@smk Thank you for the video. However, the issue was not clearly visible in the video. 

I recorded a video to demonstrate how to properly place the Narrow actor in a new level. Please take a look at it. In the video, I show both methods: dragging a new Narrow actor into the map, or copying an existing one from the demo map into your level. Both approaches should work correctly.

There are a few important things that need to be set up properly:

  1. As shown in the video, StartEndBox1, StartEndBox2, NarrowCheckBox1, and NarrowCheckBox2 should be positioned exactly like the sample setup in the demo map, especially regarding their distance from the Narrow boundaries. I show in the video
  2. There is also a value in InsideLinetrace function. The longer the Narrow section is, the higher this value should be. For medium-length Narrow sections, a value of 250 works well. For longer Narrow sections, a value close to 400 is good. As I mentioned, this actor has already been updated internally, making it a bit easier to work with. These improvements will be included in the next update release.

Please watch the video, and if you still have any questions , feel free to ask.

Video Link : https://darksilvergames.com/wp-content/uploads/2026/06/Narrow.mp4


This post was modified 1 day ago by Farshad

   
JStudios reacted
ReplyQuote
Af69c77078507fc16023925cc1245dccb046d506e5ec287a0f25600d0a3c957a?s=80&d=mm&r=g
 SMK
(@smk)
Active Member
Joined: 4 days ago
Posts: 5
 

@farshad THANKS A LOT!!!

For your information, in case you wanted feedback, here is what fixed each of my problems:

1) The character getting stuck and not progressing forward:   Moving the StartEnd boxes the way you did (closer toward the inside) of the space.

2) The character staying in "Narrow movement" mode:  Extending the line to 250.

Thank you again!



   
Farshad and JStudios reacted
ReplyQuote
7cda2610241cc41b3cc8b65195fbfcc4abaf7ebe420ad5276e4f5c53e3f5f250?s=80&d=mm&r=g
(@jstudios)
Eminent Member
Joined: 4 months ago
Posts: 19
Topic starter  

@farshad I was able to get my character to move all the way through but when I decide to go back my character gets stuck at the end when exiting. I will keep testing it.



   
Farshad reacted
ReplyQuote
Share: