I am making a game type where I want a pawn that kills another pawn to "inherit" their weapon inventory. So, if I kill another player, I get ALL their weapons. Here is the code I have for this, but it doesn't seem to work:
Can anyone tell me what I'm doing wrong here? No weapons are being given to the Killer pawn.
Code:
// Give victims weapons to killer for(Inv = Victim.Inventory; Inv != None; Inv = Inv.Inventory) { if(Weapon(Inv)!= None) { Inv.GiveTo(Killer); } }
Comment