ysage89
10-23-2008, 01:12 AM
I am currently making tunnel vision, which works fine but I wish to change it based upon the player's health. I got the logic down and the code down for everything, but I just cannot seem to make the object work with the functions inside the new class for the HUD.
I named the new class for HUD...
class NewHUD extends UTHUD;
and inside I changed a few variables that work. I also added a function inside....
function ChangeHitEffect(float Fade, float Intensity)
{
HitEffectFadeTime=Fade;
HitEffectIntensity=Intensity;
}
Now in the pawn function, I am creating an object to use that function so I can change the fade and intensity...
local NewHUD Tunnel;
However, the compiler said (I knew this would happen, I just don't know how to declare it something) that Tunnel is unused before given a value.
What can I make Tunnel equal to...? And how? I don't know the Unreal script syntax completely yet.
Thanks.
I named the new class for HUD...
class NewHUD extends UTHUD;
and inside I changed a few variables that work. I also added a function inside....
function ChangeHitEffect(float Fade, float Intensity)
{
HitEffectFadeTime=Fade;
HitEffectIntensity=Intensity;
}
Now in the pawn function, I am creating an object to use that function so I can change the fade and intensity...
local NewHUD Tunnel;
However, the compiler said (I knew this would happen, I just don't know how to declare it something) that Tunnel is unused before given a value.
What can I make Tunnel equal to...? And how? I don't know the Unreal script syntax completely yet.
Thanks.