Click or drag to resize

EntityManagerDestroyT Method (EntityId)

Destroys the components of the specified type T attached to the specified entity.

Namespace:  SampSharp.Entities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void Destroy<T>(
	EntityId entity
)
where T : Component

Parameters

entity
Type: SampSharp.EntitiesEntityId
The entity of which to destroy its components of the specified type T.

Type Parameters

T
The type of the components to destroy.

Implements

IEntityManagerDestroyT(EntityId)
See Also