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"

Why can't I call "Restart Game" function in Game Mode Blueprint?

Help me understand something....

If I cast to the default game mode, I can call the "Restart Game" function and it'll work as expected.

HOWEVER, if I cast to a game mode I created, I CANNOT call the "Restart Game" function (it won't allow me to wire from "As First Person Game Mode" to the "Target" of the "Restart Game" function).

Why not? I thought the function "Restart Game" was built into the Game Mode blueprint?

alt text

Product Version: UE 4.21
Tags:
restart-game.png (182.3 kB)
more ▼

asked Mar 28 '19 at 04:22 PM in Blueprint Scripting

avatar image

VagrantProfile
116 19 30 39

avatar image Shadowriver Mar 28 '19 at 05:52 PM

What toottip say when you hover over link on the pin?

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

2 answers: sort voted first

Can you search for the Restart Game function by dragging out the blue pin from your custom GameMode cast?

more ▼

answered Mar 28 '19 at 06:24 PM

avatar image

duderseb
503 2 9 7

avatar image VagrantProfile Mar 29 '19 at 08:53 PM

If I drag out of "As First Person Game Mode," then the contextual "Restart Game" function is not available. I have to uncheck the context sensitive checkbox for the "Restart Game" function to show.....and if I get it to show, I cannot plug into the "Target" on that node from the "As First Person Game Mode" output of the Game Mode cast node.

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

Is the parent class of your custom GM a Game Mode or a Game Mode Base? The latter doesn't have the Restart Game function as it's a more bare bones version of the former; which has some additional functionality like the Restart Game function you're after.

more ▼

answered Mar 29 '19 at 10:05 PM

avatar image

duderseb
503 2 9 7

avatar image VagrantProfile Apr 11 '19 at 07:33 PM

You helped me pinpoint the answer, duderseb! My Game Mode was based off "Game Mode Base" instead of just "Game Mode."

avatar image duderseb Apr 11 '19 at 08:11 PM

Glad to hear! Mark the response as Answer to help others find it :)

avatar image mightyenigma Apr 11 '19 at 07:36 PM

convert to answer :)

(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