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"

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. 

How to add a duration requirement on event before trigger?

Hi all, total newbie here!

It took me all day how to work out how to trigger a Matinee with a Leap Motion gesture, in this case, when you make a fist.

I finally got it working, but the problem I now have is that it's way too sensitive, and is triggering the moment the hand is in shot, for example, when putting a VR headset on.

What I need to be able to do is to add a duration requirement, for example, hold a fist (grabbing) for 3 seconds before it plays.

What seems to make this a little more complicated, is that it doesn't seem to have the normal 'pressed' and 'released' conditions that other inputs do.

Here is my current code:

alt text

I've tried all sorts, but am clearly lacking the experience required - Please help!

Product Version: UE 4.15
Tags:
leapbp.jpg (187.1 kB)
more ▼

asked Jul 02 '17 at 06:42 PM in Using UE4

avatar image

OmniDetta
1

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

2 answers: sort voted first

Where do you activate the HandGrabbing? Before you call that function, I would use SetTimer, give it 3 sec and call this event, and whenever the Fist is not detected, reset the timer. <3

more ▼

answered Jul 02 '17 at 07:30 PM

avatar image

Ninjin
4.1k 88 38 152

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

I REALLY appreciate the reply Ninjen, but not sure exactly what you mean?

Basically this is a small demo on rails experience - you start in a dark room, with a brief intro and instructions on how to start the matinee (hold out hands and make a fist!), Once the fist is detected, the matinee triggers and the cinematic begins.

There is no deeper, or more complicated context context beyond that, so the code you see above in the level blueprint is literally all there is! That, the environment, and the matinee actor. So, ideally any missing code could be understood by a total newbie, and could be built into the level code above! :)

more ▼

answered Jul 03 '17 at 12:02 AM

avatar image

OmniDetta
1

(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