x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Add a value in details panel

Hello, I just made a door BP, and they're re-usable, so i can place it say 3 times in a level, and they all act the intended way. I want the doors to teleport you to a certain map depending on the door, and I'm wondering if it's possible to put a value in the details panel that I can set in the level editor. I'm sorry if this is confusing. Thanks.

Product Version: UE 4.20
Tags:
more ▼

asked Sep 09 '18 at 03:07 PM in Blueprint Scripting

avatar image

Pepperoni505
5 1 1 3

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

1 answer: sort voted first

yes its possible. all you need to do is create a variable in your door bp then click the little eye icon next to the variable name to make the variable public. this will enable you to select the door in the scene and set the variable from the details panel. from there you just need to plug the variable into your script. probably use a name variable type and plug it into a open level node in your case.

more ▼

answered Sep 09 '18 at 03:58 PM

avatar image

ThompsonN13
10.1k 33 9 23

avatar image Pepperoni505 Sep 09 '18 at 04:14 PM

Thanks for the answer! I’m kind of new, I understand the first part but I am a bit confused about the second. Can you elaborate on that please?

avatar image ThompsonN13 Sep 09 '18 at 04:33 PM

the following pictures show you everything you need.

the first picture shows everything you need to do in the door bp. create the variable, click the eye icon, set its type, and then use the variable as needed in a script. in this case i included on overlap check if the overlapping actor is the player, then open the door, and when the door is open then open the next level which is based on the variable.

the second picture shows how to set the variable on a per instance basis via the details panel of the level editor. you can set teh variables value for each door to something different for each one. so one door could go to level 2 while another door next to it could go to level 6.

alt text

alt text

capture.png (377.9 kB)
capture2.png (909.2 kB)
(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