Click or drag to resize
IMyDestroyableObjectDoDamage Method

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

[Missing <summary> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

Namespace: VRage.Game.ModAPI.Interfaces
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
bool DoDamage(
	float damage,
	MyStringHash damageSource,
	bool sync,
	Nullable<MyHitInfo> hitInfo = null,
	long attackerId = 0
)

Parameters

damage
Type: SystemSingle

[Missing <param name="damage"/> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

damageSource
Type: MyStringHash

[Missing <param name="damageSource"/> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

sync
Type: SystemBoolean

[Missing <param name="sync"/> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

hitInfo (Optional)
Type: SystemNullableMyHitInfo

[Missing <param name="hitInfo"/> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

attackerId (Optional)
Type: SystemInt64

[Missing <param name="attackerId"/> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:VRage.Game.ModAPI.Interfaces.IMyDestroyableObject.DoDamage(System.Single,VRage.Utils.MyStringHash,System.Boolean,System.Nullable{VRage.Game.ModAPI.MyHitInfo},System.Int64)"]

See Also