Click or drag to resize

DamageEventArgs Constructor

Initializes a new instance of the DamageEventArgs class.

Namespace:  SampSharp.GameMode.Events
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public DamageEventArgs(
	BasePlayer otherPlayer,
	float amount,
	Weapon weapon,
	BodyPart bodypart
)

Parameters

otherPlayer
Type: SampSharp.GameMode.WorldBasePlayer
The other player.
amount
Type: SystemSingle
Amount of damage done.
weapon
Type: SampSharp.GameMode.DefinitionsWeapon
Weapon used to damage another.
bodypart
Type: SampSharp.GameMode.DefinitionsBodyPart
BodyPart shot at.
See Also