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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Widget button on released playing on clicked event

I want to make it so a blocking animation is played for the player, so when I click the shield button it will play the animation to block, then play the animation to stop blocking after a short time.

when I hold the button down it will only play the block animation except when I release the button, it plays the animation to stop blocking, but then on clicked decides to activate as well, repeating the on clicked animations. when I release the button without my mouse being on top it, this does not happen and it all plays as intended. I tried changing on clicked to precise click but it just makes it worse. I hope I explained myself okay let me know if you have a simple answer alt text

Product Version: UE 4.22
image.png (108.3 kB)
more ▼

asked Apr 16 '19 at 12:10 AM in Blueprint Scripting

avatar image

76 18 22 26

avatar image FinalZer0 Apr 16 '19 at 02:10 PM

One way might be to make method where StopBlocking -> Retriggerable Delay (1.0) -> PlayStopBlocking Animation. I haven't test this, but it might work for you

avatar image Master.Oogway Apr 16 '19 at 03:59 PM

Hey thanks for the answers! it helped but I changed a few other things to help it as well and fixed it thanks man

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

1 answer: sort voted first

Instead of making two functions for blocking and unblocking, I kept one of them and used a flipflop, and also took away the "on clicked" event since it doesn't like being used with on pressed. I connected both: "on released" and "on pressed" and the flipflop did the job.

more ▼

answered Apr 16 '19 at 04:00 PM

avatar image

76 18 22 26

(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