InCone

The InCone condition lets you check if entities are in a cone.

Argument
Description
Default Value

angle

The angle, in degrees, of the cone.

0

direction

The direction vector of the cone. Uses the Vector serializer.

~0 0 1 (forward)

A cone diagram

In the diagram above, the angle argument is the same thing as θ\theta.

This example creates an RPG_7 back blast effect in Shoot.Mechanics:

Mechanics:
  - "CustomSound{sound=shoot.rpg7.loud, volume=6, noise=0.1}"
  - "Damage{damage=10.0} @World{} ?Range{max=4} ?InCone{direction=~0 0 -1, angle=28}"

Last updated