# オーバーラップイベントを繰り返し行いたい

**URL:** <https://forums.unrealengine.com/t/topic/435676>\
**Category:** Blueprint\
**Tags:** oncomponentbeginover, unreal-engine, UE4, Blueprint, question\
**Created:** [October 15, 2018, 3:14pm UTC](https://forums.unrealengine.com/t/topic/435676 "2018-10-15T15:14:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suzusiro-haruka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Suzusiro-haruka](https://forums.unrealengine.com/u/Suzusiro-haruka)\
**Post date:** [October 15, 2018, 3:14pm UTC](https://forums.unrealengine.com/t/topic/435676/1 "2018-10-15T15:14:08Z")

</div>

床を踏んだときに槍が飛び出る仕掛けを作成中です。  
一度踏んだ際に槍が飛び出すようには出来たのですが、一回きりになってしまいます。  
対象の床を踏むたびに槍を飛び出すように処理をしたいのですが、ご教授頂けると幸いです。

 ![256643-槍か飛ひ出す処理3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/8/db832e250ad0c167cc9a6e331c1204774a4a37e0.png)

---

<div class="post-metadata">

**Author:** ![T\_Sumisaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T\_Sumisaki](https://forums.unrealengine.com/u/T_Sumisaki)\
**Post date:** [October 15, 2018, 4:35pm UTC](https://forums.unrealengine.com/t/topic/435676/2 "2018-10-15T16:35:23Z")

</div>

Overlapイベントは一度のOverlap中に何度も発生するものではないので、工夫する必要があります。

Timelineであれば、最後まで再生した際にFinishピンから出力が出ますので、Branchノードを一つ挟んでPlayFromStartに戻すと良いでしょう。  
間に挟んだBranchノードにはBoolean変数作成して繋げておき、このBoolean変数をBeginOverlapした際にTrue、EndOverlapした際にFalseにすれば、EndOverlapするまで繰り返す形になります。

---

<div class="post-metadata">

**Author:** ![Suzusiro-haruka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Suzusiro-haruka](https://forums.unrealengine.com/u/Suzusiro-haruka)\
**Post date:** [October 15, 2018, 10:32pm UTC](https://forums.unrealengine.com/t/topic/435676/3 "2018-10-15T22:32:41Z")

</div>

お早い回答ありがとうございます！  
上記の方法で一度試してみたいと思います。

---

<div class="post-metadata">

**Author:** ![alwei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alwei/32/1194579_2.png) [@alwei](https://forums.unrealengine.com/u/alwei)\
**Post date:** [October 24, 2018, 1:40pm UTC](https://forums.unrealengine.com/t/topic/435676/4 "2018-10-24T13:40:04Z")

</div>

解決した場合には解決済みにチェックをつけてスレッドを解決済みにしていただくようご協力お願いします。

Answerhub クイックスタートヘルプ日本語訳

[https://answers.unrealengine.com/questions/687897/index.html](https://answers.unrealengine.com/questions/687897/index.html)
