This is really wierd. I'm trying to return from a function my custom class variable, but when I do that it only returns the default values, even though I KNOW that's not what I returned, since I've been logging and debugging everything TONS in the past 4 hours.
I have a custom class that inherits from info, lets call it myThingy. I call an accessor function that owns that object to return it, like this:
So basically, when I try to return my custom class variable from any function, it only returns the default values and not the values of the var I tried to return!! And this isn't even a replication problem, so I'm real confused. Does anyone know what I'm doing wrong? I even went as far as trying to overload the = operator because I thought maybe that might help, but I couldn't get that to work either. *sigh*
I have a custom class that inherits from info, lets call it myThingy. I call an accessor function that owns that object to return it, like this:
Code:
Class myBot extends xBot;
var myThingy myOwnThingy;
function changeThingy()
{
// do LOTS of stuff here to change the values
}
function returnMyThingy()
{
return myOwnThingy;
}
------------------
Class somethingElse...
function doSomething()
{
local myThingy differentOne;
differentOne = myBot(bot).returnMyThingy();
// but it just returns to me the default class values!!
}
So basically, when I try to return my custom class variable from any function, it only returns the default values and not the values of the var I tried to return!! And this isn't even a replication problem, so I'm real confused. Does anyone know what I'm doing wrong? I even went as far as trying to overload the = operator because I thought maybe that might help, but I couldn't get that to work either. *sigh*