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"

How to create a note door (like in Banjo-Kazooie?)

For those who are unfamiliar, I am basically asking for a door that will only open after the player presses a button and possesses a certain number of an object (expressed by a variable).

Example scenario: A door that only opens when the player is nearby, pressed F, and has 50 "orbs" (or whatever variable you desire).

I am new to blueprint scripting and could use some help. Thank you!

Product Version: UE 4.11
Tags:
more ▼

asked Jun 17 '16 at 12:30 AM in Blueprint Scripting

avatar image

Sunshine Arts Studios
27 3 4 9

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

1 answer: sort voted first

Well just like any other programming there are many ways to go about this. But the end reault would be your player will have to check if it has enough to open the door, or the door will have to check the player. since it's the door that has the requirement I would have the door do it. So if the player has a public variable or function to access the orb count then have the door get player character and cast to what ever your play class is then access that info to determine if it should open or not.

more ▼

answered Jun 17 '16 at 12:57 AM

avatar image

MOS99Z
326 6 6 11

avatar image MOS99Z Jun 17 '16 at 12:58 AM

Granted this is but only 1 possible methods.

avatar image Sunshine Arts Studios Jun 18 '16 at 05:45 AM

If it's not too much trouble, could you provide a sample of this in blueprints or recommend a way to get a good start in using them?

avatar image MOS99Z Jun 18 '16 at 06:15 AM

Umm sure, give me a bit, in the middle of a game of league haha.

avatar image MOS99Z Jun 18 '16 at 08:13 AM

Ok I just got to record what I did and ill upload it for you.

avatar image MOS99Z Jun 18 '16 at 09:40 AM

Ok here is the Video Link. I did forget to go over setting up the doors collider, i'm using a box collider that I lined up with the door, set it BlockAllDynamic, then I reset it to custom so I could set the custom trace channel I made to Block, that parts really important lol. Also sorry for the audio not being perfect, for some reason my mic volume jumps on its own, its something i'm still trying to fix.

avatar image Sunshine Arts Studios Aug 10 '16 at 03:08 AM

Hey, thanks very much! So sorry for the very late response, this is the first time I've checked in on this website in almost two months. Thanks again!

(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