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"

Custom Event Input not the same as what I pass into it?

I've been stumped on the problem with this for days now. In my playerstate I am checking if it has authority and if not getting the local game instance (GetLocalPlayerCustomize) which prints part of its data to the client. The client shows the correct data for what Is represented in the game. I then take the same struct ref. I used to print the debug string and send it as input to the custom event (Server_SetPlayerCustomizationState) for some reason it doesn't match?

Orange is what is printed before sending to custom event alt text

Red is apparently what the custom event receives.

alt text

PlayerState BP:

alt text

I'm aware of the implications of having the client send data to the server but I'll be using checks to make sure it's not anything crazy in the future. Right now I just need this to work. If theres some other way to do this using a game instance please let me know.

Thanks for your time.

Product Version: UE 4.19
Tags:
senttoserver.png (10.2 kB)
server.png (2.4 kB)
bp.png (281.7 kB)
more ▼

asked May 02 '18 at 08:18 AM in Blueprint Scripting

avatar image

tyconner
1 2 5

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

1 answer: sort voted first

I might be wrong, but i think the Game Instance class is only available locally! So you cant access Game Instance information in a different client or server.

more ▼

answered May 02 '18 at 10:17 AM

avatar image

goncasmage
897 12 14 25

avatar image tyconner May 02 '18 at 12:13 PM

I'm passing that information straight from the local game instance into the input of the custom event. The fact it isnt the same defeats every purpose of any custom event with an input regardless of where anything is present. Especially since I'm not referencing the game instance after its referenced locally.

(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