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"

Knife Swing Replication

Hey yall, I have an issue with some of my replication for a player doing a knife swinging. Right now, there is no animation but I am just trying to get the basics of it down. What I am trying to do is run a ray trace and spawn a knife collider Blueprint when it hits something (like another character). I setup the replication the way I thought would work for spawning a blueprint.alt text

Then to make sure that I was hitting something and that it was being replicated I added a print node so that I could see what was being hit. Mind you I did this all and was working good before I started to replicate. The server can print the things he is hitting but the clients don't see what they are hitting on the print screen. I also have the knife BP replicating in its class options.

alt text

I've been scratching my head over this for quite sometime. If someone could help me out that would be appreciated. Thanks.

Product Version: UE 4.10
Tags:
swingrep.png (203.4 kB)
kniferep.png (172.7 kB)
more ▼

asked Feb 19 '16 at 06:24 PM in Blueprint Scripting

avatar image

dougbott
6 2 4 8

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

1 answer: sort voted first

So, I was able to figure out my issue by combining the function replication with the variable replication. I will post below the pictures of the differences I used. If you guys have any other questions about how I did this just message me and I'd be happy to explain it a bit more. I feel the pictures explain it good.

Starts with pressing Button to Swing. alt text

Moves into Rep Notify where ray cast happens alt text

Then Moves back to EventGraph to Call spawn actor of Knife Collier and knife collider is spawned. alt text

Hope this helps at least one person. I understand the replication struggle is real.

repswingstart.png (76.4 kB)
onrepfuncswing.png (138.9 kB)
repknifegood.png (174.6 kB)
more ▼

answered Feb 23 '16 at 08:27 PM

avatar image

dougbott
6 2 4 8

(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