Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to create set boundaries for a pawn?

I have a box component that I want to act as a boundary for where the pawn can move on the screen. I want to achieve something similar to the Pixel Ship example where the ship can only move so far left or right. Looking through the Blueprints of the Pixel Ship game controller I don't see any logic that would stop pawn movement when it gets to the edge of the screen. How can this be done?

Product Version: Not Selected
more ▼

asked Apr 27 '14 at 07:53 AM in Blueprint Scripting

avatar image

554 59 164 125

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


A quick fix for this would be to add Blocking Volumes to keep your character inside a specific space (take a look at Shooter Game, there's Blocking Volumes used to prevent players from jumping out of the level).

more ▼

answered Apr 28 '14 at 03:14 PM

avatar image

DizzyWes ♦♦ STAFF
5k 145 64 206

avatar image Kochab Apr 28 '14 at 04:09 PM

I really want to stay away from Blocking Volumes. I'd have to go in and make blocking volumes for each level. Isn't there a way to block the Pawn with a box shape component? That would be much easier for me. I have a box shape component, but no matter what settings I try my Pawn always floats right through. I tried setting the Pawn and the Box Shape to Block All and it still didn't work.

avatar image DizzyWes ♦♦ STAFF Apr 28 '14 at 05:25 PM

You might be able to set min/max values for the X, Y or Z depending upon what you want to limit your character to.

I took a look at the example you mention in the Content Examples, that example is using the Doorframe static mesh to keep the character in the play space (that's why you couldn't see anything in the Blueprint for restricting movement).


avatar image Kochab Apr 28 '14 at 06:55 PM

Yeah I just set min/max values. Thanks for the suggestion.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question