SlashCo Wiki

SlashCo.CanSeePing

 boolean SlashCo.CanSeePing( number plyTeam, number pingTeam )

Description

Returns whether a player on plyTeam is allowed to see a ping placed by a player on pingTeam.
Spectators can see every ping. Survivors can additionally see pings made by spectators. Otherwise a ping is only visible to players on the same team.
This is shared between client and server to avoid mismatches caused by either side seeing a different team setup.

Arguments

1number plyTeam

Team of the player checking whether it can see the ping

2number pingTeam

Team of the player who placed the ping

Returns

1boolean canSee

Whether the ping is visible to plyTeam