Skip to content
Version 2.11.0
↓ Get the launcher

IEntityTransforms.TryGetTransform method

Attempts to read the world position and facing of the entity identified by id. Returns false if the entity cannot be resolved this frame (despawned / not loaded / no game); in that case position is Zero and yawDegrees is 0.

public bool TryGetTransform(EntityId id, out Position3D position, out float yawDegrees)
parameter description
id The entity id (as seen on combat events / party roster).
position World-space position on success.
yawDegrees Facing in degrees [0,360) on success; 0 when facing is unavailable.

true if a live transform was read; otherwise false.