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"

Story mode must be completed to access multiplayer?

Trust me, it sounds a lot easier than it sounds.

So, in the horror video game that I'm making, there are two modes: story-based levels known as Chapters, and simply Multiplayer. I want the player to be required to beat the story of the game before they have the ability to access multiplayer. Does anybody know how I can do this? Any help would be greatly appreciated. Thanks in advance!

Product Version: UE 4.13
more ▼

asked Jun 22 '17 at 07:31 PM in Blueprint Scripting

avatar image


avatar image JerichoBLT Jun 23 '17 at 01:46 AM

(Well, I haven't done anything like that yet, but I'm pretty sure you can control that with just one boolean variable.)

Create a boolean variable and name it "StoryComplete?" (Or name it whatever you want, it doesn't matter.) Set the default value to false, and when the player finishes the last chapter of the story, set it to true.

Now, you're probably gonna want this variable to be remembered for saved games. I think all you gotta do is go to the details panel for the boolean, and check the box for "SaveGame".

Now, in your mode select script, (whether it be a menu screen or whatever,) if the player tries to access multiplayer, you can control what happens by simply checking the value of "StoryComplete?" If the value equals true, then continue on to your multiplayer script. If it equals false, then you could simply do nothing, and stay in the mode select, for example.

Does that sound about right? I hope this will set you on your way. :)

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

0 answers: sort voted first
Be the first one to answer this question
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