# Weeping Angels effect

**URL:** <https://forums.unrealengine.com/t/weeping-angels-effect/432807>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [August 30, 2018, 4:01pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807 "2018-08-30T16:01:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 30, 2018, 4:01pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/1 "2018-08-30T16:01:28Z")

</div>

I’m trying to make a weeping angels effect for a character. It’s supposed to execute a blueprint when the player isn’t looking at it and stop when the player is looking at it, but just pausing so it will continue the blueprint when the player isn’t looking at it instead of re-executing the blueprint.

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [August 30, 2018, 11:11pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/2 "2018-08-30T23:11:52Z")

</div>

It is not necessary (not sure if possible) to pause the blueprint.

If you need the “Weeping Angels effect” just store the Target in another variable and do 2 events:

Event 1 will run if the player is not looking and move the actor towards the Target.  
Event 2 will run if the player is looking and will tell it to stop without messing with the Target.

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 30, 2018, 11:39pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/3 "2018-08-30T23:39:49Z")

</div>

Do you think you could post a picture of the blueprints for this?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [August 31, 2018, 5:37am UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/4 "2018-08-31T05:37:31Z")

</div>

You can’t really “pause” a blueprint, but you can set Time dilation for it. If you set it to 0 it will be equivalent to a pause.   
  
Alternatively, you can pause a Timeline.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 7:39am UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/5 "2018-08-31T07:39:35Z")

</div>

Maybe it’s not about _pausing_ anything at all _per se_. Perhaps it’s just about gating the statue’s Tick so it does not execute a part of its script. This simple approach seems to work well enough.

Statues follow player:

 ![252183-follow.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/6/55603ef469cc2ee3ce597a59ab0108ce06bdba07.png)

Until the player looks at them:

 ![252184-playertick.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/0/950e16012bad518a680a30b7fcb59e02dbf3b44b.png)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/3/9e3cce28579e70c669587d1be483fd980595b09c.gif)](https://gyazo.com/6e36b8f2222be449978461b851dba8f5)

There might be a more elegant solution, though.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 7:47am UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/6 "2018-08-31T07:47:26Z")

</div>

Or you use Mr. Conehead:

 ![252185-mrconehead.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/a/31a19c596b2127951429a3b9aec6b4c55c7977b1.png)

 ![252186-conestop.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/1/1516a82815f054525d57edb08b51ef0d8db827f9.png)

To stop more than one in place:

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/1/b4158126f56098301eb9f7a59920cb81288027eb.gif)](https://gyazo.com/22e407cfc541f89903eac38622b9b5d2)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [August 31, 2018, 7:49am UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/7 "2018-08-31T07:49:34Z")

</div>

I like that. Those snowmen are scary. But I believe simple line trace is not enough. You should get the vector from the player to the angel, get the angle between the said vector and the player’s forward vector, and stop the angel’s movement if that angle is less than a half of the player’s field of view angle so that you would never see them move.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 7:51am UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/8 "2018-08-31T07:51:07Z")

</div>

Yes, that’s a grown up approach! With math and all. Not until I’ve finished second coffee.

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 31, 2018, 12:51pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/9 "2018-08-31T12:51:41Z")

</div>

Okay, thanks for the help! I’ll try this.

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 31, 2018, 12:58pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/10 "2018-08-31T12:58:55Z")

</div>

Is there any advantage using one over the other or are they pretty much equal?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 1:04pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/11 "2018-08-31T13:04:07Z")

</div>

You either stop one target or many. That’s the difference here. It simply depends on what you want the end result to be.

Or use what Tuerer suggested - it’s the most flexible approach. Gives you the extra option of stopping _precisely_ _everything_ on the screen that the player can see… Scary.

To you it would seem that nothing is moving, indeed 😑

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 31, 2018, 1:12pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/12 "2018-08-31T13:12:42Z")

</div>

One more question… How do you make the CanMove boolean to make them stop or is it all there and I’m just missing something? (I’m using the second example)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 1:13pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/13 "2018-08-31T13:13:56Z")

</div>

The bool is the statue’s variable, you need to add it yourself.

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 31, 2018, 1:28pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/14 "2018-08-31T13:28:18Z")

</div>

For some reason it doesn’t print out the text. Should I post a picture of my blueprints so you can see if something is wrong with them?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 3:01pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/15 "2018-08-31T15:01:42Z")

</div>

Sure, go ahead.

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [August 31, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/16 "2018-08-31T15:31:33Z")

</div>

another way to do this via math would be to use the inverse transform node and then every actor thats in the -x would be behind the player.

 ![252225-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/3/6d3d406793ba1faf7d2695c40317bca1d4bbc98d.png)

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 31, 2018, 3:34pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/17 "2018-08-31T15:34:30Z")

</div>

![252232-screenshot-61.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/a/e4ae23d6d3add65394394b1188fb2e5c3d019632.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 3:34pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/18 "2018-08-31T15:34:43Z")

</div>

Nice and clean. I might have gone over the top with my suggestion but I was just under the impression OP wanted a single target usage.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2018, 3:36pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/19 "2018-08-31T15:36:16Z")

</div>

Plug in `Test Base Actor` on the Debug node, otherwise you’re printing everything at 0,0,0 in the World Coords.

* * *

Why do I never get to see _World Context Object_? x)  
edit: Ah, you get it by using the context sensitive wire drag. Last time I checked it does nothing.

---

<div class="post-metadata">

**Author:** ![0land0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0land0](https://forums.unrealengine.com/u/0land0)\
**Post date:** [August 31, 2018, 3:51pm UTC](https://forums.unrealengine.com/t/weeping-angels-effect/432807/20 "2018-08-31T15:51:00Z")

</div>

It still doesn’t print out. Is there something missing?

[Next page](https://forums.unrealengine.com/t/weeping-angels-effect/432807.md?page=2)
