# 求解，通过阴影控制场景中的物体和AI

**URL:** <https://forums.unrealengine.com/t/ai/226847>\
**Category:** 简体中文 (Simplified Chinese)\
**Tags:** unreal-engine\
**Created:** [April 28, 2021, 2:55am UTC](https://forums.unrealengine.com/t/ai/226847 "2021-04-28T02:55:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArtoriasZero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtoriasZero](https://forums.unrealengine.com/u/ArtoriasZero)\
**Post date:** [April 28, 2021, 2:55am UTC](https://forums.unrealengine.com/t/ai/226847/1 "2021-04-28T02:55:49Z")

</div>

最近做项目要实现一个功能，通过一团阴影在场景中运动，接触到其他物体或者AI的时候可以控制它们（物体变得可以自由移动，AI可以攻击之类的）。目前想到的是可移动的物体设置为Pawn，通过Pawn切换来实现。但是具体到AI的攻击该怎么做呢？求解
