Class MyMeteor
Inherited Members
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MyEntityType]
public class MyMeteor : MyEntity, IMyMeteor, IMyDestroyableObject, IMyDecalProxy, IMyEntity, IMyEntity, IMyEventProxy, IMyEventOwner
Constructors
MyMeteor()
Declaration
public MyMeteor()
Properties
Integrity
Declaration
public float Integrity { get; }
Property Value
Type | Description |
---|---|
System.Single |
IsCCDForProjectiles
Declaration
public override bool IsCCDForProjectiles { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
UseDamageSystem
Declaration
public bool UseDamageSystem { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
DoDamage(Single, MyStringHash, Boolean, Nullable<MyHitInfo>, Int64, Int64, Boolean, Nullable<MyStringHash>)
Declaration
public bool DoDamage(float damage, MyStringHash damageType, bool sync, Nullable<MyHitInfo> hitInfo, long attackerId, long realHitEntityId = 0L, bool shouldDetonateAmmo = true, Nullable<MyStringHash> extraInfo = null)
Parameters
Type | Name | Description |
---|---|---|
System.Single | damage | |
MyStringHash | damageType | |
System.Boolean | sync | |
System.Nullable<MyHitInfo> | hitInfo | |
System.Int64 | attackerId | |
System.Int64 | realHitEntityId | |
System.Boolean | shouldDetonateAmmo | |
System.Nullable<MyStringHash> | extraInfo |
Returns
Type | Description |
---|---|
System.Boolean |
GetObjectBuilder(Boolean)
Declaration
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | copy |
Returns
Type | Description |
---|---|
MyObjectBuilder_EntityBase |
Overrides
OnDestroy()
Declaration
public void OnDestroy()
Spawn(ref MyPhysicalInventoryItem, Vector3D, Vector3)
Declaration
public static MyEntity Spawn(ref MyPhysicalInventoryItem item, Vector3D position, Vector3 speed)
Parameters
Type | Name | Description |
---|---|---|
MyPhysicalInventoryItem | item | |
Vector3D | position | |
Vector3 | speed |
Returns
Type | Description |
---|---|
MyEntity |
SpawnRandom(Vector3D, Vector3)
Declaration
public static MyEntity SpawnRandom(Vector3D position, Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | |
Vector3 | direction |
Returns
Type | Description |
---|---|
MyEntity |
Explicit Interface Implementations
IMyDecalProxy.AddDecals(ref MyHitInfo, MyStringHash, Vector3, Object, IMyDecalHandler, MyStringHash, MyStringHash, Boolean, MyDecalFlags, Int32, List<UInt32>)
Declaration
void IMyDecalProxy.AddDecals(ref MyHitInfo hitInfo, MyStringHash source, Vector3 forwardDirection, object customdata, IMyDecalHandler decalHandler, MyStringHash physicalMaterial, MyStringHash voxelMaterial, bool isTrail, MyDecalFlags flags, int aliveUntil, List<uint> ids)
Parameters
Type | Name | Description |
---|---|---|
MyHitInfo | hitInfo | |
MyStringHash | source | |
Vector3 | forwardDirection | |
System.Object | customdata | |
IMyDecalHandler | decalHandler | |
MyStringHash | physicalMaterial | |
MyStringHash | voxelMaterial | |
System.Boolean | isTrail | |
VRageRender.MyDecalFlags | flags | |
System.Int32 | aliveUntil | |
System.Collections.Generic.List<System.UInt32> | ids |