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"

Door lock system

Okay so i followed the tutorial below on how to do a resident evil 7 style door system:

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

Now the problem i have is that i want one of the doors to be locked and can only be opened when you pickup a key. I have gone through multiple forums and tutorials trying to find a lock system which would work with my blueprint to no luck. My question is how can i implement a door lock system which will disable the doors input until i acquire a key?

Product Version: UE 4.18
Tags:
more ▼

asked Nov 28 '17 at 04:46 PM in Blueprint Scripting

avatar image

Luqman Surreal
27 1 4 5

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

1 answer: sort voted first

In this place https://youtu.be/7IaWQMnRuzI?t=9m45s, between Closed and Rotate Door function, you should add test - have key or not. This should be branch. If key is true connect with Rotate Door function, if false - do nothing or Print String message "no key found".

How to add key to player inventory is another question and explanation need tutorial, but you can start from simple inventory system from Epic https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gZalvQWYs8sc7RP_-8eSr3i/ This sample project you can install from your Learn tab in Epic Launcher.

more ▼

answered Nov 28 '17 at 04:57 PM

avatar image

Vaheva
1.3k 24 29 52

avatar image Luqman Surreal Nov 28 '17 at 05:44 PM

I followed your advice and it worked!!! after getting the key into my inventory i added a branch to the manage door custom event which fixed my problem, thank you :)

(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