Notification for spectators

Game development with Board Game Arena Studio
Post Reply
User avatar
quietmint
Posts: 265
Joined: 31 July 2017, 00:28

Notification for spectators

Post by quietmint »

Is there any way to know who is a spectator of my game? Any way to send notification to the spectators other than notifyAllPlayers()?

I have a scenario where I want to notify some players & all spectators. Is there way to do this, or do I need to send to all with parameter like 'ignore' => array( $player1, $player2 ) to handle on client side?
User avatar
Victoria_La
Posts: 620
Joined: 28 December 2015, 20:55

Re: Notification for spectators

Post by Victoria_La »

If this is confidential information you cannot send it to spectators, why would you exclude some players from that?
If it just repeat of information it should be fine (and I don't know of API to to send it to spectators)
Post Reply

Return to “Developers”