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"

Apply Damage or Custom Event?

What are the advantages of using Apply damage node over a custom event + SwitchHasAuthority?

Product Version: UE 4.20
Tags:
more ▼

asked Feb 01 '19 at 04:54 PM in Blueprint Scripting

avatar image

Alyanorno
85 6 5 10

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

2 answers: sort voted first

Switch has authority just tests if the player is the client or the server. So you would still need to call Apply Damage to give the right amount of DMG to whatever you are attacking.

more ▼

answered Feb 01 '19 at 06:34 PM

avatar image

xXZUKINIXx
116 4 5 8

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

To provide an answer, either will work really. Apply Damage is a simple builtin server-only function that provides minimal damage-applying functionality. If you're going to get into things like elemental damage, source types, etc. then a custom piece is preferred. I currently push data into an actor's BP prior to calling the Apply Damage so that it receives more information about what damaged it.

more ▼

answered Feb 01 '19 at 10:41 PM

avatar image

mrteuy
146 2 2 4

(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