player.entityAimingAt

Description

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

Syntax

readonly entityAimingAt: entity | null;

Real World Example

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

results matching ""

    No results matching ""