Announcement

Collapse
No announcement yet.

Weapons Pickup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Weapons Pickup

    Does anyone know how to place a weapon in a players inventory when they pick up a pickup extended from the UDamagePack? I've tried looking through the WeaponPickup class but couldn't find anything useful.

    #2
    Re: Weapons Pickup

    Originally posted by SG007
    Does anyone know how to place a weapon in a players inventory when they pick up a pickup extended from the UDamagePack? I've tried looking through the WeaponPickup class but couldn't find anything useful.
    look at the code for the PickupQuery function (I think thats what its called, it passes in an inventory item as its parameter, then checks to see if the inventory item is the same as the class thats calling the function.

    It looks something like

    function bool PickupQuery(Inventory Item)
    {
    }

    You would want to override this function in your new pickup so that it not only copies itself into the inventory list of the person picking it up, but it also puts a copy of the weapon that you want to place into the players inventory.

    I THINK thats what your trying to do, right?

    Comment

    Working...
    X