1. I am trying to run an effect for all players when I send a chat command, but it is'nt working.
    I have this.

    Code:
    [ChatCommand("a")]
            void Test(BasePlayer player)
            {
                foreach (BasePlayer jugador in BasePlayer.activePlayerList.ToList())
                {
                    Effect.server.Run(fxeventobusqueda, player.transform.position);
                }
            }
    I don't know what is wrong. It works just for the player that send the command.

    Thanks.
     
  2. Code:
    [ChatCommand("a")]
            void Test(BasePlayer player)
            {
                foreach (BasePlayer jugador in BasePlayer.activePlayerList.ToList())
                {
                    Effect.server.Run(fxeventobusqueda, jugador.transform.position);
                }
            }
    
    You were not using "jugador", which is what you're forloop would have been populating.
     
  3. Thank you!
     
  4. Just as a side thought, you dont need .ToList() - activePlayerList is already a list :)