Page 1 of 1

websocket function options

Posted: Tue Jun 12, 2012 11:44 am
by ShawnSwander
I have been scripting my combat for the game and I'm a little snagged on how to do something here.

So in the scanareo that 4 orcs attack player1 of 10 players is there a good way to filter which players recieve that data? I feel like my options are just 1 guy or all of them or all but the one the server is replying to.\

If player1 and 2 are hunting and a dragon hits player 1 I might want player2 to hear it and player 1 to loose hp but I dont want player 6 78 9 & 10 to be sent useless data when they are somewhere else. even if its discarded it seems inefficient.