Skip to main content

AimedWeapon

Gets called when the player aimed the weapon.

Start a script section

!-- OnEvent AimedWeapon
-- require @evPlayer $evAiming *evFirearmItem

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerAimedWeaponEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who aimed the weapon.
$evAimingbool valueWhether the player is aiming or unaiming.
*evFirearmItemreference to FirearmItem objectGets the weapon being aimed.