set_loadout
Sets or clears a player’s personal-combat loadout.
Function
Synopsis
btech.player.set_loadout( player, loadout )
Arguments
DbRef|Object player- The player.
BtechPersonalCombatLoadout|nil loadout- The new loadout, or
nilto clear it.
A loadout contains a required armor table:
| Field | Type | Range |
|---|---|---|
head | integer | 0 to 2 |
torso | integer | 0 to 8 |
hands | integer | 0 to 2 |
feet | integer | 0 to 2 |
It may also contain right and left equipment tables. Each equipment table
has these fields:
BtechPartRef weapon- A personal-combat weapon.
integer|nil ammunition- Optional ammunition from 0 to 255. This field is valid only for a weapon that
uses ammunition. If omitted, the weapon receives its
ammunition_per_tonamount; pass0explicitly to equip the weapon without ammunition.
Returns
None.