# How can I give a probability of an actor spawning?

**URL:** <https://forums.unrealengine.com/t/how-can-i-give-a-probability-of-an-actor-spawning/461698>\
**Category:** Blueprint\
**Tags:** actor, spawning, unreal-engine, UE4, Blueprint, question\
**Created:** [February 13, 2020, 9:59am UTC](https://forums.unrealengine.com/t/how-can-i-give-a-probability-of-an-actor-spawning/461698 "2020-02-13T09:59:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BluAstronaut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BluAstronaut](https://forums.unrealengine.com/u/BluAstronaut)\
**Post date:** [February 13, 2020, 9:59am UTC](https://forums.unrealengine.com/t/how-can-i-give-a-probability-of-an-actor-spawning/461698/1 "2020-02-13T09:59:28Z")

</div>

![296786-screenshot-171.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/1/bb13ea0763e6d2d99a258e99fa3c7789829160d6.png)

I am trying to make it so when it spawns (Event BeginPlay) it will have a 50/50 chance of spawning, after 2 seconds it will reset; giving it another 50% of spawning or not. Like flippping a coin

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 13, 2020, 10:26am UTC](https://forums.unrealengine.com/t/how-can-i-give-a-probability-of-an-actor-spawning/461698/2 "2020-02-13T10:26:00Z")

</div>

Like this:

 ![296791-spawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/1/0d1c8c7a575cd07f2f466e0f06d9cf6c7e1307dc.png)

The code to kill the actor after 2 seconds is inside the actor itself. That way, you don’t have to manage it…
