# Make my model switch animation when i shine my light at him.

**URL:** <https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988>\
**Category:** Platform & Builds\
**Tags:** Switch, model, light, pose, unreal-engine, question\
**Created:** [April 20, 2020, 1:07am UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988 "2020-04-20T01:07:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 20, 2020, 1:07am UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/1 "2020-04-20T01:07:52Z")

</div>

Look at the title please.

---

<div class="post-metadata">

**Author:** ![irajsb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/irajsb/32/740687_2.png) [@irajsb](https://forums.unrealengine.com/u/irajsb)\
**Post date:** [April 20, 2020, 2:26am UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/2 "2020-04-20T02:26:59Z")

</div>

Any light or some specific lights?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 20, 2020, 10:22am UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/3 "2020-04-20T10:22:47Z")

</div>

Any light will do.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc1fe2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc1fe2e1](https://forums.unrealengine.com/u/anonymous_user_bc1fe2e1)\
**Post date:** [April 21, 2020, 7:10am UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/4 "2020-04-21T07:10:45Z")

</div>

If it’s a specific light, like a a flash light item the player uses, it might be easiest to just attach a collision box to it, and then work with the overlap event (for instance, set/remove a flag, and then use this in your animation BP).

Of course if it’s light in general, like sunlight, all lamps that are around etc. this won’t work.

Maybe you can also find more ideas here:

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 21, 2020, 7:10pm UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/5 "2020-04-21T19:10:49Z")

</div>

Is there another way? Your example seems a bit complex because im a beginner.

---

<div class="post-metadata">

**Author:** ![Limp\_Noodle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Limp\_Noodle](https://forums.unrealengine.com/u/Limp_Noodle)\
**Post date:** [April 21, 2020, 7:28pm UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/6 "2020-04-21T19:28:30Z")

</div>

If it is a flashlight, create a line trace from the flashlight. Add a node to the behavior tree (if AI) that reacts to the line trace. Think of it like shooting bullets. If it’s a light like a light bulb, add a switch for which ABP the character will use.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_86f4b4551](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86f4b4551](https://forums.unrealengine.com/u/anonymous_user_86f4b4551)\
**Post date:** [April 21, 2020, 7:40pm UTC](https://forums.unrealengine.com/t/make-my-model-switch-animation-when-i-shine-my-light-at-him/463988/7 "2020-04-21T19:40:25Z")

</div>

Could you send a snip?
