Skip to content
On this page

entityAimingAt()

Get the vehicle, player, etc. that the player is aiming at.

Function Definition

ts
public readonly entityAimingAt: Entity | null;

Returns

  • Entity | null

Documentation

Examples

ts
const target = player.entityAimingAt;

if (target !== someOtherPlayer) {
    // not aiming at the player we are looking for
    return;
}

// is aiming at the player we are looking for

Documentation Created with ❤️ by Stuyk