Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets player which receives this loadout.
&evItemscollection of ItemType enum valueGets items which player will receive.
&evAmmocollection of reference to KeyValuePair<ItemType, UInt16> objectGets ammo which player will receive.
$evInventoryResetbool valueGets or sets whether players inventory should be cleared before getting loadout.
$evIsAllowedbool valueWhether the event is allowed to run.