This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 30
Player
西行寺幽幽子 edited this page Jun 17, 2019
·
6 revisions
-
void
Player.AddHealth(int amount) -
void
Player.Ban(int duration) -
void
Player.Ban(int duration, string message) -
void
Player.ChangeRole(Role role, bool full = true, bool spawnTeleport = true, bool spawnProtect = true, bool removeHandcuffs = false) -
void
Player.Damage(int amount, DamageType type = DamageType.NUKE) -
void
Player.Disconnect() -
void
Player.Disconnect(string message) -
Item
Player.GiveItem(ItemType type) -
void
Player.HandcuffPlayer(Player playerToHandcuff) -
bool
Player.HasItem(ItemType type) -
void
Player.HideTag(bool enable) -
void
Player.Infect(float time) -
bool
Player.IsHandcuffed() -
void
Player.Kill(DamageType type = DamageType.NUKE) -
void
Player.RemoveHandcuffs() -
string
Player.RunCommand(string command, string[] args) -
void
Player.SendConsoleMessage(string message, string color = "green") -
void
Player.Teleport(Vector pos, bool unstuck = false) -
void
Player.ThrowGrenade(ItemType grenadeType, bool isCustomDirection, Vector direction, bool isEnvironmentallyTriggered, Vector position, bool isCustomForce, float throwForce, bool slowThrow = false) -
void
Player.PersonalBroadcast(int showTime, string Message, bool isMonospace)
-
Vector
Player.Get106Portal() -
int
Player.GetAmmo(AmmoType type) -
string
Player.GetAuthToken() -
bool
Player.GetBypassMode() -
Item
Player.GetCurrentItem() -
int
Player.GetCurrentItemIndex() -
object
Player.GetGameObject() -
bool
Player.GetGhostMode() -
bool
Player.GetGodmode() -
int
Player.GetHealth() -
List<Item>
Player.GetInventory() -
int
Player.GetItemIndex(ItemType type) -
Vector
Player.GetPosition() -
string
Player.GetRankName() -
Vector
Player.GetRotation() -
UserGroup
Player.GetUserGroup()
-
void
Player.SetAmmo(AmmoType type, int amount) -
void
Player.SetCurrentItem(ItemType type) -
void
Player.SetCurrentItemIndex(int index) -
void
Player.SetGhostMode(bool ghostMode, bool visibleToSpec = true, bool visibleWhenTalking = true) -
void
Player.SetGodmode(bool godmode) -
void
Player.SetHealth(int amount, DamageType type = DamageType.NUKE) -
void
Player.SetRadioBattery(int battery) -
void
Player.SetRank(string color = "", string text = "", string group = "")
-
string
Player.IpAddress -
string
Player.Name -
bool
Player.OverwatchMode -
int
Player.PlayerId -
RadioStatus
Player.RadioStatus -
bool
Player.ShouldCallSetRoleEvent -
string
Player.SteamId -
TeamRole
Player.TeamRole
- Installation
- Config
- Server Name Variables
- Commands
-
- Admin Events
- Enviroment Events
-
Player Events
- OnPlayerHurt
- OnPlayerDie
- OnPlayerPickupItem
- OnPlayerDropItem
- OnPlayerJoin
- OnNicknameSet
- OnAssignTeam
- OnSetRole
- OnCheckEscape
- OnSpawn
- OnDoorAccess
- OnIntercom
- OnIntercomCooldownCheck
- OnPocketDimensionExit
- OnPocketDimensionEnter
- OnPocketDimensionDie
- OnThrowGrenade
- OnPlayerInfected
- OnSpawnRagdoll
- OnLure
- OnContain106
- OnMedkitUse
- OnShoot
- On106CreatePortal
- On106Teleport
- OnElevatorUse
- OnHandcuff
- OnGeneratorUnlock
- OnGeneratorAccess
- OnGeneratorInsertTablet
- OnGeneratorEjectTablet
- On079Door
- On079Lock
- On079Elevator
- On079TeslaGate
- On079AddExp
- On079LevelUp
- On079UnlockDoors
- On079CameraTeleport
- On079ElevatorTeleport
- On079StartSpeaker
- On079StopSpeaker
- On079Lockdown
- Server Round Events
- Team Events