Click or drag to resize
IMyDamageSystemRegisterBeforeDamageHandler Method

[This is preliminary documentation and is subject to change.]

Registers a handler that is called before an object in game is damaged. The damage can be modified in this handler.

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
void RegisterBeforeDamageHandler(
	int priority,
	BeforeDamageApplied handler
)

Parameters

priority
Type: SystemInt32
Priority level. Lower means higher priority.
handler
Type: VRage.Game.ModAPIBeforeDamageApplied
Actual handler delegate
See Also