How to make the enemy jumpscare the player

Hi guys . I’m trying to make a horror game i have my the enemy and his ai is ready but i want him when he touching the player he jumpscare him but i don’t know how to do that . Help me guys please :frowning:

when he touching the player

thats pretty much begin overlap. other actor = get player character

he jumpscare him

and what should that entail?.. loud noise? appear suddenly in front of player?

And how can i do it ?
Can you send me a picture for it so i can do it .

i pretty much laid out the first bit and as for the jumpscare part you never explained what your looking to do.

I have the jumpscare in video file and i want if the enemy get closer to the player the video ( jumpscare ) plays

open your enemy character and go the event graph. create a on begin overlap event. drag off the blue other actor pin and search for equal (==) node, that should connect the other actor pin to the equal node input. for the other input drag left and search for get player character. what this will accomplish is that you are comparing the overlapped actor to the player character and seeing if they are the same. ok so now off the output of the equal node search for a branch. connect the branch to the event overlap via the white exe pins. next drag off the true pin and search for create widget. on the create widget node you will assign a widget to use which will have the video on it (see linked tutorial below). next drag off the blue return pin of the create widget node and search for add to viewport, that will add the widget to the players screen.

you may need to play around with your collision settings or add a extra collision volume to make sure your enemy overlaps the character. theres also probably many ways to create this same kind of thing but this is just the first i came across. theres a ton of tutorials out there on playing videos and on working with overlap events so you should google and check some out for more information.

Can you Explain more ??

explain more about which part? what part of it do you not understand? im sure i could explain many more things but its not going to help if i dont know where your having a issue.

honestly though between the explanation, the picture, and the linked tutorial there isnt really much else to say.

About this part : ( you may need to play around with your collision settings or add a extra collision volume to make sure your enemy overlaps the character. theres also probably many ways to create this same kind of thing but this is just the first i came across. theres a ton of tutorials out there on playing videos and on working with overlap events so you should google and check some out for more information )

all i meant there was that you need to ensure that the collision settings are setup correctly so that your enemy can overlap the player. basically if the enemy’s collision is set to say ignore pawn then the overlap wont occur, so set the collision to settings that allow overlap. or you could add a extra collision volume to the enemy such as a sphere volume and have that set to overlap pawn.

as for the rest i was just saying that theres a ton of information and tutorials on what your trying to accomplish and the topics mentioned were a good thing to search for for supplementary information.

How can i do it with blueprint ?