Creating a Sphere

I’m making a character who while scoped in (I’m using Widowmaker for template) can deploy up to 2 blue spheres on the ground. How would I go about making a sphere appear where my reticle is while scoped in?
Thanks!

For the sphere, when creating the entity, set its position to a variable.
To set variable SpherePos, find Ray Cast Hit Position.
Start position will be: Eye Position(Event Player)
End Position will be, say 75m down your line of sight. To get that, do:
Add Eye Position(Event Player) + Multiply(Facing Direction of Event Player , 75)

There’s options if you want it to hit turrets and what players.

Now this will get the position of where you’re looking, but if you scope in again, it will update. If you want your two blue spheres in two different locations, you’ll more than likely want a variable for sphere position for each sphere.
Don’t forget to save a variable to the Last Created Entity after creating the effect, so we can refer to each sphere.

To make the second sphere,

Have a rule with the condition of:
Is Firing Secondary(Event Player) AND Entity Exists(Sphere1=True)

Rule actions:
{
Create Effect
wait(0.016)
Set Player Variable(Sphere2, Last Created Entity)
Set Player Variable(SpherePos2, Ray Cast Hit Position
}

This is a rough guide, but should help get you started. :slight_smile:

Thank you so much! I’ll get started on this!