Thank you for answering. I looked at my UT2004 Log file for errors and came up THIS same thing HUNDREDS of times. It makes the log file really big:
Code:
Warning: WCHudCDeathmatch DM-MyMap.WCHudCDeathmatch0 (Function WCGame.WCHudCDeathmatch.DrawWarriorImages:0031) Accessed None 'P'.
That is definitely the error. The piece of code I wrote above was definitely wrong. I also tried at the beginning " local WCPlayerPawn P; " but that didn't work either.
WCPlayerPawn is certainly a subclass WCPawn.
The "DigitsMoney.Value=p.Money;" gets called when the HUD is drawn. It lies under DrawHudPassA:
Code:
Simulated function DrawHudPassA (Canvas C)
{
local pawn RealPawnOwner;
local class<ammunition> ammoclass;
ZoomFadeOut(C);
DrawWarriorImages(C);
...
It lies right under where the Local Variables are being defined near the top. This part is just taken out of the top of the function. Is this in the correct position?
And yes the Custom Pawn is using that value because I tried in the console "Get WCGame.WCPlayerPawn Money" it gives me my default value 500. That is the value I want shown on the HUD but it seems to be 0. I'm also not using any mutators.
I hope this issue gets figured out soon.
Bookmarks