# IScriptEntity.setTarget [← IScriptEntity](index.md) · [← Master](../../wiki.md) setTarget(IScriptEntity entity) void Set this entity's attack target to given entity.