Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.
Robin Möller edited this page Nov 8, 2020 · 9 revisions

Player

Namespace: Synapse.Api

This object is used to interact with an Player and contains these things:

  • Kick() => Kicks the Player from the Server
  • Ban() => Bans the Player from the Server
  • ChangeRoleAtPosition() => Changes the Role of the Player without setting a new Position,giving items etc.
  • Kill() => Kills the Player
  • GiveTextHint() => Gives the Player a TextHint
  • SendConsoleMessage => Sends a Message in the Player Console
  • SendRAConsoleMessage => Sends a Message in the Remote Admin of the Player
  • GiveItem() => Gives the Player an Item
  • GiveEffect() => Gives the Player an effect
  • RaLogin() => Activates the RemoteAdmin of the Player
  • RaLogout() => Deactivates the RemoteAdmin of the Player
  • Hurt() => Gives the Player Damage
  • SendToServer() => Sends the Player to an different Scp:SL Server that is running on a different port on the same pc
  • DimScreen() => Makes the Screen of the Player for the entire Round black
  • ShakeScreen() => Shakes the Screen of the Player
  • Jail => The Jail object of the Player
  • Scp106Controller => The Scp106Controller of the Player
  • Scp079Controller => The Scp079Controller of the Player
  • ActiveBroadcasts => The currently active Broadcasts of the Player in a BroadcastList ordered how they get displayed
  • Inventory => The PlayerInventory
  • SendBroadcast() => Sends an Broadcast to the Player
  • CustomRole => The Current CustomRole of the Player (is null when the Player is no CustomRole)
  • RoleID => The Current RoleId of the Player (you can also set the CustomRole of a Player with it)
  • SynapseGroup => The SynapseGroup of the Player
  • HasPermission() => if the Player has the Permissions
  • RefreshPermissions => Refresh the Permission of the Player
  • GlobalBadge => The GlobalBadge of the Player
  • DisplayName => The Name which is displayed in game
  • PlayeID => The Playerid of the Player
  • UserID => The Userid of the Player
  • SecondUserID => The SecondUserid of the Player (Northwood staff often has a @steam an @northwood userid)
  • Noclip => if Noclip for the Player is active
  • OverWatch => if the Player is in overwatch
  • Bypass => if the Player can bypass everything
  • GodMod => if GodMode is active
  • Position => The Position of the Player
  • Rotation => The Rotation of the Player
  • DeathPosition => The last Position where the Players died
  • DeathTime => the Time since the Player is death
  • Scale => The Scale of the Player
  • Health => The Health of the Player
  • MaxHealth => The Max health the Player can have
  • ArtificialHealth => The artificial health the Player has
  • MaxArtificialHealth => The Max artificial have a player can get
  • Stamina => How much Stamina the Player has (0-100)
  • RoleType => The current RoleType of the Player (does not change the RoleID if the Players CustomRole is not null)
  • Room => The current Room the Player is in
  • MapPoint => The current Position of the Player as MapPoint
  • Cuffer => The person who cuffed the current player object
  • LookingAt => The Gameobject which the Player is currently looking at
  • Ammo5 => The Ammo5 the Player has
  • Ammo7 => The Ammo7 the Player has
  • Ammo9 => The Ammo9 the Player has
  • Rank => The UserGroup of the Player
  • RankColor => The RankColor of the Player
  • RankName => The Rankname of the Player
  • HideRank => if the Player Rank is hidden
  • Permission => The Permissions of the Player
  • IsMuted => if the Player is muted
  • IsIntercomMuted => If the Player is in the intercom muted
  • UnitName => The Unit Name the Player is in
  • CommandSender => The CommandSender object of the Player
  • DoNotTrack => If the Player has enabled the DoNotTrack Config
  • IsDead => if the Player is dead
  • IsZooming => if the Player is zoomin currently with a weapon
  • IsReloading => if the Player curently reloads his weapon
  • IsCuffed => if the Player is Cuffed
  • AliveTime => The time since the Player is alive
  • AuthToke => The AuthToken of the Player
  • Ping => The ping of the Player
  • NickName => The NickName of the Player
  • Team => The Team the Player is in
  • RealTeam => The Team the Player is in (also checks if the Player has a CUstomRole and when he have gives you the Team of the CustomRole)
  • Fraction => The Fraction of the Player
  • ItemInHand => The Current Item in the Hand of the Player
  • Connection => The NetworkConnection of the Player
  • IpAdress => The IpAdress of the Player
  • SetData() => Stores data for this Player (gets stored even between Server restarts)
  • GetData() => Gives you the stored data in the Player
  • CameraReference => The CameraReference of the Player

The following things are VanillaObjects and are not recommended to use except you know what you are doing

  • AmmoBox
  • HintDisplay
  • SearchCoordinator
  • FootstepSync
  • PlayerEffectsController
  • PlayerInteract
  • Handcuffs
  • FallDamage
  • AnimationController
  • SpectatorManager
  • NicknameSync
  • PlayerMovementSync
  • QueryProcessor
  • ServerRoles
  • PlayerStats
  • VanillaInventory
  • ClassManager
  • Hub

Features we wish to implement (inside the wiki) soon:

Jail

Scp106Controller

Scp079Controller

Broadcast

BroadcastList

PlayerInventory

SynapseGroup

Clone this wiki locally