function ModifyPlayer(Pawn Other)
{
local xPawn x; //x is a variable
x = xPawn(Other);
if (x != None)
{
x.MaxMultiJump = MultiJumpCount;
x.MultiJumpBoost = MultiJumpBoost;
x.Health = StartingHealth;
x.HealthMax = MaximumHealth
x.SuperHealthMax = MaximumSuperHealth
}
}
If anything I try to compile under UT2004 declares; local xPawn x;....I get "Error unrecognized type 'xPawn' "..Does anyone know why. Is there a different way you would do this in UT2004.
{
local xPawn x; //x is a variable
x = xPawn(Other);
if (x != None)
{
x.MaxMultiJump = MultiJumpCount;
x.MultiJumpBoost = MultiJumpBoost;
x.Health = StartingHealth;
x.HealthMax = MaximumHealth
x.SuperHealthMax = MaximumSuperHealth
}
}
If anything I try to compile under UT2004 declares; local xPawn x;....I get "Error unrecognized type 'xPawn' "..Does anyone know why. Is there a different way you would do this in UT2004.
Comment