Class DamagePlayerRequested
Event listener args which handles SDG.Unturned.DamageTool.damagePlayerRequested.
public class DamagePlayerRequested : CancellablePlayerEvent, IPlayerEvent, ICancellable
- Inheritance
-
DamagePlayerRequested
- Implements
- Inherited Members
Remarks
Does not support async event handlers.
Constructors
DamagePlayerRequested(in DamagePlayerParameters, IPlayerService)
public DamagePlayerRequested(in DamagePlayerParameters parameters, IPlayerService playerService)
Parameters
parametersDamagePlayerParametersplayerServiceIPlayerService
Properties
Instigator
The player that instigated the damage.
public WarfarePlayer? Instigator { get; set; }
Property Value
IsInjure
If this request injured the player.
public bool IsInjure { get; set; }
Property Value
Parameters
Mutable properties for how players are damaged.
public ref DamagePlayerParameters Parameters { get; }
Property Value
- DamagePlayerParameters