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"

AI Character animation with key press?

alt text Hello , i want to make the girl charcter do a animation , when i press "E" ( When i'm in the box trigger) , how i can do it? That animation will be do just one time , because after that animation i will do a effect and the loading for the second level , that level it's just like a "Dream" , but for the loading level and the "effect" i will make a new answer after , now i really need that animation when press "E" , someone can you help me? Sorry for my english.alt text

Product Version: UE 4.19 Preview
Tags:
help1.png (556.0 kB)
help2.png (588.1 kB)
more ▼

asked Jan 24 '18 at 02:12 PM in Using UE4

avatar image

Neja
14 3 5 9

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

1 answer: sort voted first

Hey there, if on the box collision's begin play you do Player Controller - Enable input and connect the self to the actor you should be able to issue input commands to the box. Just create an input event for the E key and do your logic.

more ▼

answered Jan 24 '18 at 02:40 PM

avatar image

xlar8or
6k 161 129 304

avatar image Neja Jan 24 '18 at 03:14 PM

Hi , thanks for respond .. i'm trying to do that but i don't know how to continue ( i'm new in UE and blueprint ecc) .."Bambin" is the girl charcter alt text I create the input action "Interaction" when i press E but i really don't understand what to do now!

trying.png (268.8 kB)
avatar image xlar8or Jan 24 '18 at 03:22 PM

Delete the begin play node and the enable input on the inputaction. Right click on CollisionComponent and pick on component begin overlap on the add event. When the player overlaps with the box do the Enable Input (connect the get player cdntroller to the player controller, not the target). Create also an On component end overlap to disable the input.

avatar image ThompsonN13 Jan 24 '18 at 03:28 PM

also for the object in on your cast node connect a get player character node. right now you are effectively comparing the bench to the character which would always fail.

avatar image Neja Jan 24 '18 at 03:41 PM

Okeyy , thanks!

avatar image Neja Jan 24 '18 at 03:41 PM

Okey i do that (The beginoverlap not the END), but it's not working ..alt text

not-working.png (296.1 kB)
avatar image ThompsonN13 Jan 24 '18 at 03:56 PM

the way you have it setup currently it will trigger the script if you begin overlap or if you press a button. what you should do is on begin overlap set a bool variable of "can interact". then off your input action event have a branch with the bool its testing set to the variable.

alt text

capture.png (293.1 kB)
avatar image Neja Jan 24 '18 at 04:43 PM

really thanks for do that , i understand really better all.. but it's not working! Maybe because the girl character have a animation blue print? I add a "Idle" state for be sitting , maybe i have to add a animation for when i press E! I'm tryng to do it

avatar image Neja Jan 24 '18 at 04:43 PM

really thanks for do that , i understand really better all.. but it's not working! Maybe because the girl character have a animation blue print? I add a "Idle" state for be sitting , maybe i have to add a animation state for when i press E! I'm tryng to do it

avatar image xlar8or Jan 24 '18 at 03:58 PM

On the begin overlap you only want the Enable Input connected, nothing more. On the InputAction Interaction connect to the cast, not the enable input.

avatar image xlar8or Jan 24 '18 at 04:46 PM

Just do an animation montage for it and use Play AnimMontage and you should be good to go.

avatar image Neja Jan 24 '18 at 05:02 PM

Not working :(( , really sorry if i make you all lost your time , if i get another help and i didn't make this working i will simply give up and do something more easy... Now i do the girl animation in the animation blueprint , but i don't know what to inser in the "Arrow" for make the character do that animation ... alt textalt text

try1.png (319.6 kB)
try2.png (337.9 kB)
avatar image xlar8or Jan 24 '18 at 05:41 PM

What is the transition rule from Idle to Girl Animation?

avatar image Neja Jan 24 '18 at 06:03 PM

I inser a set boolean "Can interact" to true when go , and when the arrow return to false. Anyway i don't have anything in the event graph of animation blueprint who refer to that boolean ,i don't know what inser

avatar image xlar8or Jan 24 '18 at 06:21 PM

Send screenshot of the transition rules Idle to Girl Animation and Girl Animation to Idle. It's easier that way.

avatar image Neja Jan 24 '18 at 06:39 PM

alt text

go-arrow.png (340.1 kB)
return-arrow.png (348.4 kB)
avatar image xlar8or Jan 24 '18 at 07:05 PM

You need to see more tutorials about blueprints and animation blueprints to understand how they work. You are doing a set, instead of a get on the transition rule. Go to your content browser and find the asset for the animation. Right Click on it and create an anim montage out of it. Where you have the Play Animation on the 9 Input Action replace it with a Play Anim Montage (pick the one you just created from the dropdown) from the Third Person Character 1 reference in the cast. Send me a screenshot once it's done.

(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