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"

Replicating Colour over network

hey guys so wanting to show the correct colours on the mesh depending on which team you select however it wont work any ideas? Im using a function to set the colour which is then called in the characters event graph. Any insight would be asweome! thanks

alt text

Product Version: UE 4.12
Tags:
untitled.png (1.3 MB)
untitled2.png (292.9 kB)
more ▼

asked Jul 30 '16 at 03:29 PM in Blueprint Scripting

avatar image

Pantlessnoodle
21 15 15 18

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

1 answer: sort voted first

So, you want all players to see which color is your character based on team?

When character possessed, you should call multicast event "update color", which would get character owner team id and apply changes.

more ▼

answered Jul 30 '16 at 03:36 PM

avatar image

CriErr
1.2k 56 19 55

avatar image Pantlessnoodle Jul 30 '16 at 03:46 PM

I've been trying something like that, when the character spawned in i have made a delay for like .5 sec to get the team info and then apply the following colour. still wont wont il have no hair left at this point heh

avatar image CriErr Jul 30 '16 at 04:25 PM

If you did it, it would work, but you didn't so it doesn't work :P

Show something, we can do it forever in this way.

avatar image Pantlessnoodle Jul 30 '16 at 04:36 PM

Your point is valid :P i got it almost there :P as you can see the server cant see the clients colour /facepalm

[1]: /storage/temp/100788-untitled2.png

untitled.png (1.3 MB)
untitled2.png (295.3 kB)
avatar image CriErr Jul 30 '16 at 05:18 PM

I assume, on this screenshot is the character, and you changing colors for it, so why you GetPlayerPawn(0)->GetStuff instead of get it from actor components? Just drag and drop mesh to graph, or type Get Mesh.

PlayerController(0) is player local with index 0, basically first one connected, PlayerPawn(0) is the same thing and i guess, at this point, you understand why client one does not getting updated.

avatar image Pantlessnoodle Jul 30 '16 at 05:23 PM

Yeah i changed that alright, but server still can't see clients colour. I'll just keep hacking away at it alt text

untitled.png (279.7 kB)
avatar image CriErr Jul 30 '16 at 05:30 PM

Print out colors as text and watch the values for each character on each instance, mb there are some problems, its really should work.

avatar image Pantlessnoodle Jul 30 '16 at 05:34 PM

Yup the prints strings are coming out correct on both client and server, just the clients material wont show on server. Really odd has me stumped

avatar image CriErr Jul 30 '16 at 05:49 PM

Its not client material show up on server, its character which controlled by client doesn't get updated on server instance, which is weird.

Try one more thing, make multicast reliable.

avatar image Pantlessnoodle Jul 30 '16 at 05:52 PM

already tried that haha im just gonna move on for now anyways il come back to it

avatar image CriErr Jul 30 '16 at 05:58 PM

If you can share the code, i could check it, but in guess game, i'm run out of suggestions.

(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