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
OnPlayerHurt
ShingekiNoRex edited this page Aug 24, 2018
·
7 revisions
Called before the player is going to take damage.
In case the attacker can't be passed, attacker will be null (fall damage etc), so check for that before doing something.
IEventHandlerPlayerHurt
-
Player
Player { get; }
The player who takes damage
-
Player
Attacker { get; }
The attacker who damages the player
-
float
Damage { get; set; }
The amount of damage the player takes
-
DamageType
DamageType { get; set; }
The type of damage taken
Need to be added
- 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