Reign of Kings Proximity chat

Discussion in 'Plugin Requests' started by Waveblock, Jun 9, 2015.

  1. I actually have a roleplay server and I want to do multiples channels, and one of them is a Local Roleplay Chat, how can I do that with Oxide ?
     
  2. My guess:
    on player chat hook, if the chat is in proximity chat channel, scan area around player who chatted for other players, then use PrintToChat(nearbyPlayer, message)

    Not sure about retrieving players in a nearby area as I haven't looked into such a thing, but i'd suggest looking at the No Attack Zone plguin for it's 2d vector work to get an 'area'.
     
  3. Easiest thing to do would be to loop all the online players and check their distance with the player sending the message. Another option would probably be using a SphereCast (unity)