| Home Page | Recent Changes | Preferences

# How UT Weapons Work/Picking Up A Weapon

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 To Do

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In