In my base mutator class I have a function where I have to set some variables in the one and only active MH2UDamage object to default values.
So it should look like this in the base mutator class:
Code: Select all
local MH2UDamage damage;
local Inventory Inv;
Inv = PlayerPawn.FindInventoryType(class'MH2UDamage');
if ( Inv != None)
{
damage=MISSING_REFERENCE_TO_OBJECT_FOUND_VIA_INVENTORY;
damage.FinalCount = damage.Default.FinalCount;
damage.Charge = damage.Default.Charge;
}
Or is it not possible?