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"

Accessing animation notifies in a regular (non animation) blueprint

I built an asset which is a curtain using cloth simulation. The user can either open or close the curtain by hitting a key on the keyboard. There are only those 2 animations that I use and I send events from my level blueprint to my Curtain Blueprint which is a regular blueprint.

I want however prevent the user from retriggering the animation while it is playing

THIS DID NOT WORK:

My first idea was to set a boolean "CurtainActive" to true, start playing the animation and then setting it to false again. This was wrong thinking, as the events are non blocking, so what happens is that "CurtainActive" gets set to true, the animation is started and immediately set to false again, leading to the same behavior as before.

So I looked at animation notifies which would probablz give me the functionality I need, but now I saw that they work onlz from Animation blueprints which feels like overkill for accomplishing just opening and closing a simple curtain.

THE QUESTION REMAINS: Is there a way to implement the behavior that I need using a simple regular blueprint or will I have to take the dive into animation blueprints to achieve what I want?

Product Version: UE 4.15
Tags:
more ▼

asked Sep 04 '17 at 04:32 PM in Blueprint Scripting

avatar image

rraab
1 1 1

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

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