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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who aimed the weapon. |
$evAiming | bool value | Whether the player is aiming or unaiming. |
*evFirearmItem | reference to FirearmItem object | Gets the weapon being aimed. |