I have a problem, it's related to the UDamage, well, i am making a mutator (For myself).
I want to spawn automatically with the UDamage. But it can't manage to do it even if i put bActive=true
Here is the code:
Code: Select all
class FXBUTGiveUDamage expands FXBUTGiveSinglePowerUp;
function ModifyPlayer(Pawn Other)
{
local inventory Inv;
inv = Spawn(class'Botpack.UDamage');
if( inv != None )
{
inv.bHeldItem = true;
inv.RespawnTime = 0.0;
inv.GiveTo(Other);
inv.bActive = true;
}
if ( NextMutator != None )
NextMutator.ModifyPlayer(Other);
}
Thanks.