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"

Animnotify Parameters

Is it possible to pass a parameter with a custom animnotify?

A simple example of this would be:

  • I have an animmontage that has a chain of attacks

  • I have an anim notify trigger every time I want to try and deal damage

  • I want each anim notify to pass a different damage value into my deal damage function

Product Version: UE 4.11
more ▼

asked Jun 02 '16 at 06:03 AM in Blueprint Scripting

avatar image

28 1 2 5

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

2 answers: sort voted first

I came looking for an answer to this too but discovered you can just add a variable to your AnimNotify class, and set it to Editable - it will then show up in your notify. So in your case you can just add a float variable for damage, and then you only need the one notify regardless of damage amount.

more ▼

answered May 09 '17 at 01:06 AM

avatar image

503 14 27 41

avatar image Gfelb May 09 '17 at 01:24 AM

Bammmmmm, that's the answer! thanks!

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

i see no problem here. anim notify just trigger an event inside the animation bp, what whatever happens on the event of that notify its up to you. just do something like "animnotifyEvent->set variable damage on" try to get pawn owner" (casted to you player character"

more ▼

answered Jun 02 '16 at 11:12 AM

avatar image

813 22 11 46

avatar image Gfelb Jun 02 '16 at 07:06 PM

I thought anim notify parameters were something that was possible in UE3, but I may have been mistaken. I was hoping to have 1 type of notify that goes through the same event path with a slight variation based on a parameter, rather than needing a unique notify for setting damage and checking hit, or having multiple different check hit notifies

But I think you're right and I should be able to organize my event graph so it's not a big deal. Thanks for the reply!

avatar image Nick Jackson Jun 03 '16 at 02:23 PM

Accept his answer for tracking purposes.

avatar image Gfelb Jun 03 '16 at 05:27 PM

I'll accept your face for punching purposes

(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