ChangedAttachments
Gets called when player has changed weapon attachments.
Start a script section
!-- OnEvent ChangedAttachments
-- require @evPlayer *evFirearmItem $evOldAttachments $evNewAttachments
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerChangedAttachmentsEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player that invoked the event. |
*evFirearmItem | reference to FirearmItem object | The weapon that is involved in the event. |
$evOldAttachments | number value | Gets previous attachments code. |
$evNewAttachments | number value | Gets the new attachments code. |