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 an "Event Begin Play" node into GameState breaks all input

Hi,

Summary:

If I add a "Event Begin Play" node to my existing GameState, all input stops working.

Details:

(Project: Multiplayer FPS in Blueprints) Normally all controls for multiple players work fine. I can Alt-tab between windows and can use the mouse and keyboard to control the menus and directional input etc. As soon as I add the single Begin Play node into the GameState, none of these things work! No mouse or keyboard!

NOTE: In looking for answers I noted that I should check the parent of the GameState and compare to the parent of the GameMode. They both derive from a homemade "BP_GameState/Mode_Base", and they derive from Game State and Game Mode respectively.

Is there something I'm doing wrong here?

thanks,

llll_Sabre_llll

Product Version: UE 4.17
Tags:
more ▼

asked Aug 15 '17 at 11:55 PM in Blueprint Scripting

avatar image

llll Sabre llll
30 1 2 5

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

1 answer: sort voted first

Since your game state is derived from "BP_GameState" (as you are saying): You should add a call to parent Begin Play. Just right click on the Begin Play node and add call to parent, connect the node.

more ▼

answered Aug 16 '17 at 03:46 PM

avatar image

lotodore
216 9 16 22

avatar image llll Sabre llll Aug 17 '17 at 04:11 PM

Thank you! That was it. One question... I also have an Event Tick (with a delay after) in the same Blueprint. It seems to be working fine now, but should I do the same and add a "Call to parent"?

Thanks again!

avatar image lotodore Aug 17 '17 at 07:02 PM

If BP_GameState already implements Event Tick and you need the behaviour, then you need to add a call to parent.

(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