Click or drag to resize

ComponentGetComponentInParentT Method

Gets a component of the specified type T attached to a parent entity of the entity.

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

Type Parameters

T
The type of the component to find.

Return Value

Type: T
The found component or null if no component of the specified type could be found.
See Also