BeforeDamageApplied Delegate |
[This is preliminary documentation and is subject to change.]
This delegate is used to handle damage before it's applied to an object. This returns a modified damage that is used in DoDamage. Return damage if no change.
Namespace: VRage.Game.ModAPIAssembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax public delegate void BeforeDamageApplied(
Object target,
ref MyDamageInformation info
)
Parameters
- target
- Type: SystemObject
The object that is damaged - info
- Type: VRage.Game.ModAPIMyDamageInformation
Return Value
Type:
Modified damage. Return damage parameter if damage is not modified.
See Also