@thebegin10 I tried it earlier, but it did not work. See, I am able to turn off lights for some objects using light state function, but I want to completely turn off those objects lights (like blackout).
Projectile projectiles = World.GetNearbyProjectiles(Game.Player.Character.Position, 50f); //50 meters around player
foreach (var projectile in projectiles)
Vector3 position = projectile.Position;
//do what you want with the coordinates