[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: EntityTypeAn instance of the specified derived sub class of Entity representing the specified handle, or null if the entity doesn't exist.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the specified handle does not represent an entity (Ped, Vehicle or Object). |
See Also