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"

GameState Replication Issues

This is hopefully a super simple question:

I have a custom GameMode that uses the default 'GameState'. I need to use a custom 'GameState' to change variables. (Specifically, a team's shared currency.)

If I use the default 'GameState', I can host and join matches just fine. If I use a new 'GameState' with no changes, other players can join but cannot move, and no changes are ever shown to replicate.

How can I create a custom GameState that works correctly?

I have the same issue in the First Person Template, and any other project I try for that matter.

Product Version: UE 4.15
Tags:
more ▼

asked Aug 10 '17 at 07:45 PM in Blueprint Scripting

avatar image

justdaveisfine
26 2 5

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

1 answer: sort voted first

I've been working on this issue for a few days and I just realized my mistake:

If you hit the 'plus' by GameState (To obviously create a new GameState), it creates a GameStateBase which doesn't work.

It seems you just need to create a new blueprint based off of the GameState class the normal way, not using the plus button.

alt text

I knew this was going to be a dumb issue.

gamestate1.jpg (109.5 kB)
more ▼

answered Aug 10 '17 at 07:53 PM

avatar image

justdaveisfine
26 2 5

(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