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"

Understanding how to Load the GameplayEvent/Cue UIData Class

Let me start by the use case. I want to have the Gameplay Ability determine the actual cooldown duration based on functions calls, etc (which I have working). Once that is determined I load the result in a Gameplay Effect with the "Assigned by Caller" and the Gameplay Effect Tag payload(ed) with the calculated duration. Next the Gameplay Effect fires and use the payload to assign the duration of the actual cooldown (and blocks the Gameplay Ability). The last step in the process is to have a GameplayCue (assigned in the Gameplay Effect) fire and update the UI to let the user know the skill is on cooldown (Ability Button is greyed out, cooldown count down occurring on the Cue tick, Ability button is reactivated OnRemove, which should be timed with the Gameplay Tag expiring.

My challenge is I don't know how to pass the cooldown duration to the Cue (from the Effect). I think the answer lies in the Gameplay Effect UI Data, under the Display grouping on the Gameplay effect. I developed a new C++ sub class that defines a cooldown variable, however other than manually keying it into the GameplayEffect (which defeats the purpose) - I don't know how to develop a function to determine the value for the new c++ class based on the cooldown duration passed to the effect from the ability. There are no functions in the Gameplay Effect to override. I cannot determine how to assign the variable value of the UIData class with the value received by the Gameplay Effect. any help would be appreciated, even if I am thinking about the relationship between ability, effect and cue wrong!

Product Version: UE 4.20
Tags:
more ▼

asked Aug 16 '18 at 03:32 AM in Blueprint Scripting

avatar image

Rukgul
33 2 6

avatar image RyanSullivan9999 Nov 21 '18 at 03:54 PM

Did you ever find a solution for this? I'm in a similar situation

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

0 answers: sort voted first
Be the first one to answer this question
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