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"

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 :(

Product Version: UE 4.19
Tags:
more ▼

asked Apr 14 '19 at 07:19 PM in Using UE4

avatar image

MafazGamer2018
1 1

avatar image ThompsonN13 Apr 14 '19 at 07:34 PM

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?

avatar image MafazGamer2018 Apr 15 '19 at 08:22 AM

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

avatar image ThompsonN13 Apr 15 '19 at 01:39 PM

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

avatar image MafazGamer2018 Apr 15 '19 at 04:09 PM

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

avatar image ThompsonN13 Apr 15 '19 at 10:27 PM

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.

alt text

https://www.youtube.com/watch?v=0gui0WgCCoE

capture.png (88.6 kB)
avatar image MafazGamer2018 2 days ago

Can you Explain more ??

avatar image ThompsonN13 2 days ago

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.

avatar image MafazGamer2018 2 days ago

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 )

avatar image ThompsonN13 yesterday

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.

(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