I'm not English, so I don't know how to explain it with words.
You better look at the code, please.
Thanks in advance.
You better look at the code, please.
Code:
// FatherClass.uc
class FatherClass extends Object;
var UIConsole Con;
var ChildClass Child;
function Initialize()
{
Child=new(none)class'ChildClass';
Con=new(none)class'UIConsole';
Con=Con.GetUIConsole();
Con.Message("Hi there", 1.0);
Child.Initialize(); // the message that the child class has to show does not appear...
}
Code:
// ChildClass.uc
class ChildClass extends FatherClass;
function Initialize()
{
// this condition executes, but I already initialized the console in FatherClass...
if(Con==None) ConsoleCommand("exit");
Con.Message("Hi there from ChildClass.Initialize", 1.0);
}
Code:
// Touch event on a trigger, for example
event Touch(Actor Other)
{
F=new(none)class'FatherClass';
F.Initialize();
}
Thanks in advance.