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"

Odd behaviour of Overlapping events on dedicated server

Hi,

I'm quite new to UE4 and I'm trying to get a sword welding mechanic to work since several days and can't get it to work properly: What I have is a WeaponActor (the sword) attached to my character. Via animation informs I deceide when the sword should actually make damage: For this I trigger customevents (startweld, stopweld) from the anim blueprint inside my weapon actor's blueprint.

Here my first attempt was to turn on/off the swords GenerateOverlapEvents property based on the welding phase. With the OnBeginOverlap event I did handle the actual damage. On a client only game this works fine, but with a (dedicated) server, for the serverside hitboxes the OnBeginOverlap event seems not to fire for already overlapping components when turning the GenerateOverlapEvents property on.

My other attempt was to keep GenerateOverlapEvents on and to collect already overlapping actors in a Array with OnBeginOverlap and to remove them from the array when OnEndOverlap. Since the sword makes a movement where it can hit enemies in it's movement path, I triggered a manual event to damage the already overlapping actors and handled the same branch from the onbeginoverlap event. Since this is a bit complicated to explain I attached a screenshot to this blueprint.alt text

With this I have the problem that the OnEndOverlap event seems not to fire always properly with the effect that I can sometimes damage characters with my sword even if they are far away already. Also it does only handle one enemy where it should handle 2 or more enemies standing close together.

Does someone know how to properly implement such a mechanic in blueprint or where my mistakes are?

Thanks in advance for any help.

I am using the 4.17.1 version build from source (github) btw.

Product Version: UE 4.17
Tags:
argh.png (424.2 kB)
more ▼

asked Sep 16 '17 at 11:55 AM in Blueprint Scripting

avatar image

vloh
1 2 1

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

1 answer: sort voted first

OK I found the reason for my Problem. The sword animation / movement actually did not take place on the dedicated server. The following post solved it: https://answers.unrealengine.com/questions/49935/does-animmontage-play-on-a-dedicated-server-for-th.html#comment-49935-form

more ▼

answered Sep 16 '17 at 08:03 PM

avatar image

vloh
1 2 1

(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