I made my own camera class etc through the explanation of http://udn.epicgames.com/Three/Camer...icalGuide.html
Now in my custom pawn class I made a variable, and I try to give the variable a value inside the playerCamera class.
But I tried to do this in a couple of ways but nothing is working. Shouldn't be so difficult to give a value to a variable...
If i do it like this inside the CustomPlayerCamera class:
It will not work because it says CustomPawn is a bad command or expression.Code:CustomPawn.CamRot = OutVT.POV.Rotation;
And when I do it like this:
Create a var on top of the class
add value:Code:var CustomPawn PlayerPawn;
It will not give an error when compiling, but it will show this when running the gameCode:PlayerPawn.CamRot = OutVT.POV.Rotation;
"Attempt to assign variable through none"
"Accessed none PlayerPawn"
To me it looks like my Pawn class is not running properly, but I am sure it should work because my gameinfo has my custom pawn class as defaultpawnclass.
What could be the problem?
Thanks in advance