UxrDamageEventArgs Constructor (UxrActor, UxrActor, Vector3, Single, Boolean)

Constructor for explosive damage.

Namespace: UltimateXR.Mechanics.Weapons
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public UxrDamageEventArgs(
	UxrActor source,
	UxrActor target,
	Vector3 explosionPosition,
	float damage,
	bool dies
)

Parameters

 

source
Type: UltimateXR.Mechanics.Weapons.UxrActor
Source actor or null if the damage didn’t come from another actor
target
Type: UltimateXR.Mechanics.Weapons.UxrActor
Target actor
explosionPosition
Type: Vector3
Explosion world position
damage
Type: System.Single
Damage amount
dies
Type: System.Boolean
Whether the damage results in death

See Also

Reference

UxrDamageEventArgs Class
UxrDamageEventArgs Overload
UltimateXR.Mechanics.Weapons Namespace