ReceivingLoadout
Gets called when the player is receiving a loadout.
Start a script section
!-- OnEvent ReceivingLoadout
-- require @evPlayer &evItems &evAmmo $evInventoryReset $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerReceivingLoadoutEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets player which receives this loadout. |
&evItems | collection of ItemType enum value | Gets items which player will receive. |
&evAmmo | collection of reference to KeyValuePair<ItemType, UInt16> object | Gets ammo which player will receive. |
$evInventoryReset | bool value | Gets or sets whether players inventory should be cleared before getting loadout. |
$evIsAllowed | bool value | Whether the event is allowed to run. |