player.entityAimingAt

Description

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

Syntax

readonly entityAimingAt: entity | null;

Example Usage

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 ""