Entity.LocalToWorldAngles

I’m trying to use this function to project a random traceline from an entity within given boundries.

Unfortunately I’m having trouble setting up the boundries, as I want to launch the tracelines within a ring around the entity.

It is set up so the x of the entity is pointing up at the sky.

So using bog standard us angles it would be
Angle.p = (90-120)
Angle.y = (0-360)
Angle.z = (0)

This as it is gives some very strange behavour, and I’ve mucked it up quite badly now.