# AI Bug, picking up object and animation problem. Please Check

**URL:** <https://forums.unrealengine.com/t/ai-bug-picking-up-object-and-animation-problem-please-check/462355>\
**Category:** Character & Animation\
**Tags:** object-picker, damage, unreal-engine, question\
**Created:** [March 11, 2020, 2:30pm UTC](https://forums.unrealengine.com/t/ai-bug-picking-up-object-and-animation-problem-please-check/462355 "2020-03-11T14:30:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Areez96](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Areez96](https://forums.unrealengine.com/u/Areez96)\
**Post date:** [March 11, 2020, 2:30pm UTC](https://forums.unrealengine.com/t/ai-bug-picking-up-object-and-animation-problem-please-check/462355/1 "2020-03-11T14:30:11Z")

</div>

I will be putting A link of my onedrive link for you to check. Please Check MyProject level first, it’s a basic third person project following the exact same steps where it works.  
Then Check the DoorTest project, to access the level. Go to Sci-fi door system, go to levels, go to Level0, you will see it has 6 AI characters, 2 key objects, an animated staircase just like from MyProject and the key is not picking up, the AI is damaging even if they are not in range or hitting the player but still cause damage, and the door won’t open. I am confused and do not know how to fix this issue. In this same project, a TestLevel project is there as well in the same folder, It has 1 AI character, 1 Key object, instead of stair case, I Put an actual door which was supposed to be used, as I bought those door Assets from marketplace but now I can not use them. I have been stuck on this issue for over a month and can not fix this. If you need any more detail, you can email me and I can explain again in detail about each step taken to produce this.

[https://caledonianac-my.sharepoint.com/:f:/g/personal/amemon200\_caledonian\_ac\_uk/EsYZlULX8hlMi57CaUo774YBWxxpHHx451Ty2\_EakO-vWQ?e=I0C8G1](https://caledonianac-my.sharepoint.com/:f:/g/personal/amemon200_caledonian_ac_uk/EsYZlULX8hlMi57CaUo774YBWxxpHHx451Ty2_EakO-vWQ?e=I0C8G1)

Step 1: Put a Static mesh actor Stair case  
Step 2: Add Matinee actor  
Step 3: Animate the stair case to move a little bit on the right  
Step 4: Add a trigger and put code in level blueprint  
Step 5: When player is in trigger, the stair case will play the animation  
Step 6: Add a key object or blueprint  
Step 7: Add number of keys variable in ThirdPerson Character  
Step 8: Connect that numberofkeys variable in level blueprint and key blueprint  
Step 9: When the player picks up the key object, and comes in the trigger area, the stair case will move/play the animation

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fa23c787](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fa23c787](https://forums.unrealengine.com/u/anonymous_user_fa23c787)\
**Post date:** [March 11, 2020, 9:08pm UTC](https://forums.unrealengine.com/t/ai-bug-picking-up-object-and-animation-problem-please-check/462355/2 "2020-03-11T21:08:29Z")

</div>

Hello,

Looking into your AICharacter blueprint, it looks like the Apply Damage function is triggered whenever the AICharacter On Success in reference to the MoveTo function. This indicates that the player character will get damaged whenever the AI Character moves towards the player. I would recommend putting the damage addition in a separate set of blueprints, being triggered instead by an Overlap node hooked to the player.

Let me know if your issue persists.

---

<div class="post-metadata">

**Author:** ![Areez96](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Areez96](https://forums.unrealengine.com/u/Areez96)\
**Post date:** [March 11, 2020, 9:17pm UTC](https://forums.unrealengine.com/t/ai-bug-picking-up-object-and-animation-problem-please-check/462355/3 "2020-03-11T21:17:50Z")

</div>

Can you put a SS of how that could be done. I followed videos on YT to do all that. So my understanding level is quite low. If you could help me, it will be highly appreciated. Do you mean, making separate blueprints, one for damage and other to trigger? I actually don’t know how will that work though. Unless you could refer me to a video or something

---

<div class="post-metadata">

**Author:** ![Areez96](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Areez96](https://forums.unrealengine.com/u/Areez96)\
**Post date:** [March 11, 2020, 9:20pm UTC](https://forums.unrealengine.com/t/ai-bug-picking-up-object-and-animation-problem-please-check/462355/4 "2020-03-11T21:20:23Z")

</div>

Also, what about the key object pickup? What’s causing it not work and the play animation to trigger the staircase to move. It works in the MyProject and doesn’t work in my original project. Something broke down
