ModDota / BugTracker

Listing bugs for Dota 2 Custom Games
9 stars 1 forks source link

Can't get player handle for Spectators, so can't send server events to spectator clients #137

Closed ChalkyBrush closed 6 years ago

ChalkyBrush commented 6 years ago

CustomGameEventManager:Send_ServerToPlayer(player, "special_tooltip_from_server", {unit = msg.queryunit, playerID = msg.playerID, extraData = extraData} )

^ Cannot get the "player" to send to if user is a spectator

ChalkyBrush commented 6 years ago

dumb idea, spectators cannot trigger server events