Legacy:How UT Weapons Work/Picking Up A Weapon - Unreal Wiki

# Legacy:How UT Weapons Work/Picking Up A Weapon

### From Unreal Wiki, The Unreal Engine Documentation Site

< Legacy:How UT Weapons Work

For now just a list of function calls:

(let's see how inventive your browser is with multiple bullet lists... ;))

- Inventory (UT).Pickup.Touch
  - Inventory (UT).Pickup.ValidTouch
    - GameInfo (UT).PickupQuery
      - Mutator.HandlePickupQuery → recursively called for all mutators
      - Inventory (UT).HandlePickupQuery → recursively called for the player's inventory items
  - Weapon (UT).SpawnCopy
    - Inventory (UT).GiveTo
      - TournamentWeapon.BecomeItem
      - Pawn (UT).AddInventory
      - (weapon goes to state 'Idle2')
    - Weapon (UT).GiveAmmo
    - Weapon (UT).SetSwitchPriority
    - Weapon (UT).WeaponSet (if player's bNeverSwitchOnPickup is False) → compares player's weapon with this one and switches to this weapon if it's better

To be cleaned up...

Category: Legacy To Do

##### Views

- Legacy
- Discussion
- Current revision

##### Search