WorldGetEntityByHandleEntityType Method

RAGE Plugin Hook Documentation

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

Gets an existing Entity from the specified handle.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static EntityType GetEntityByHandle<EntityType>(
	PoolHandle handle
)
where EntityType : Entity

Parameters

handle
Type: RagePoolHandle
The handle of the entity.

Type Parameters

EntityType

[Missing <typeparam name="EntityType"/> documentation for "M:Rage.World.GetEntityByHandle``1(Rage.PoolHandle)"]

Return Value

Type: EntityType
An instance of the specified derived sub class of Entity representing the specified handle, or null if the entity doesn't exist.
Exceptions

ExceptionCondition
ArgumentExceptionThrown if the specified handle does not represent an entity (Ped, Vehicle or Object).
See Also

Reference