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"

Adding Custom GameState Breaks game

Hi

I was testing out adding a new gamestate to my multiplayer project, previously i was using the default gamestate. I was unable to edit the default so i created my own, where i want to store variables such as a round timer etc. When i override the gamestate in world setting and in my gamemodes, my players wont spawn with their selected characters anymore. Is there some setting i should be turning on? Or does my whole game logic now have to be rewritten if i want to use a custom gamestate? I tried casting to the new gamestate, where the previous gamestate logic was being used, but that did nothing.

-Samuelb

Product Version: UE 4.14
Tags:
more ▼

asked Jul 21 '17 at 10:53 AM in Blueprint Scripting

avatar image

Samuelb
263 9 13 21

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

1 answer: sort voted first

This was just a silly mistake on my part, but if anyone is as careless as me, make sure to make the Custom gamestate bp based on the "gamestate" class NOT the "gamstatebase" class.

-SamuelB

more ▼

answered Jul 21 '17 at 11:17 AM

avatar image

Samuelb
263 9 13 21

avatar image Ddarkz Mar 23 '18 at 06:54 AM

it seems like if you use world settings and create and gamestate via the plus button it automatically create as a gamestatebase which breaks your game best way to create this in the future would be create actors then search for gamestate Not game state base

(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