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"

Shooting a projectile to open a door

Hello, I'm working on a small game project for class. It's a simple FPS platformer (using Unreal's default FPS setup) where you have to shoot a button on a wall to open a door to get to the end. I've been trying to figure out a way to make it so that when the projectile hits the button, it will trigger the door to open (think of shooting one of those eye targets The Legend of Zelda games to get a door to open), but I cannot seem to figure it out. Does anyone have any idea on how to accomplish this?

Product Version: UE 4.12
Tags:
more ▼

asked Oct 21 '16 at 04:24 AM in Blueprint Scripting

avatar image

tmvilla
7 3 3 3

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

The video there explains it well on how to create a door. If you have the door open/close blueprint all setup (make it a function you can call), then setting it up wont be hard. I would go about it by setting up a trigger box in front of the button in the level. Then in your level Blueprint, create a event on collision with the trigger box and cast it to your projectile or whatever it is you are using to trigger the door. Set that event to call the function to open your door from your door bp.

more ▼

answered Oct 21 '16 at 08:23 AM

avatar image

Nken418
348 11 3 14

avatar image tmvilla Oct 21 '16 at 06:02 PM

It seemed to work it seems that I was on the right track but I was going about it completely different. Thank you so much!

(comments are locked)
10|2000 characters needed characters left

Here's a tutorial on how to make a door open.

https://www.youtube.com/watch?v=mW4h0FbtVKs

It's for opening a door when walking into a trigger. However, the logic for doing it with a bullet triggering a button instead would practically be the same.

So the video should give you a general idea on how to do it.If you have any doubts on the specifics while doing it, I'll be glad to answer!

more ▼

answered Oct 21 '16 at 05:58 AM

avatar image

MacDx
600 17 9 32

(comments are locked)
10|2000 characters needed characters left
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