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"

I have created 5 cubes that have to be at a certain location to open the door. Could I get help as to how to do this in blueprints please? Pictures will help also.

I want these five cubes to be at a certain location. Once they have all been moved to a certain location a door will open. How do I do this in blueprints? Any images will help please. I am a beginner so please describe to me so I can understand.

Product Version: UE 4.20
more ▼

asked Feb 09 '19 at 05:41 AM in Blueprint Scripting

avatar image

3 1 1

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

1 answer: sort voted first

this is just a high level overview: assuming you want to move the cubes by picking them up and you're using a first person perspective. you need to run a linetrace/spheretrace in the direction your camera is facing, if the trace hits the cube you pick it up either with a physics handle or with the attach actor to component function. the specific location should probably be it's own bp with a collision volume. every time something begins and ends overlapping that volume just 'get all overlaping actors' and run a loop through the array counting up how many cubes are in it. if the number is greater that 5 open the door.

as for the door bp, just use google there are a number of tutorials covering how to set up a timeline to open a door.

On udemy the most popular course for ue4 has a escape room project that is just like what you wanting. udemy puts all their classes on sale for about 10 bucks every few weeks, so price should drop around valentines day. https://www.udemy.com/unrealcourse/

more ▼

answered Feb 09 '19 at 06:42 AM

avatar image

1k 6 4 10

avatar image AlyssaK86 Feb 09 '19 at 06:51 AM

I have moved cubes via a matinee to a specific location in room just want to be able to open door matinee after all five cubes are put in locations

avatar image AlyssaK86 Feb 09 '19 at 06:53 AM

I am doing this in third person

(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