Chris wrote:What Higor is telling you is not to use the same name for Functions, States and variables (those are all UFields..).
You're using the name "outer" for a function.. there is already a very special Object variable with this name in every object..
Next time I won't change names just to show it as an example, I wanted to make it easy for you to understand the code flow, but the names are not those I showed you. I edited the prev post right when you were posting this one .o.
PrinceOfFunky wrote:I commented the call from within Tick(), now it comes out like log1, log2, log3, all three showing None, how can I know why Spawn() failed?
EDIT: SOLVED! I knew I would have regret of it when I decided to do it that way, the situation was like this actually, there are 3 classes:
Class 1:
Code: Select all
spawn class2 with Owner = None;
call class2.outer();
set the class2 Owner;
Class 2 - function outer():
Class 3 - function inner():
Code: Select all
if (class2's Owner != None) {spawn OIP;}
log2;
OIP is not spawned cause class2's Owner is None, that's why OIP was not None in the logs from within Tick().
Well it is solved! Thanks everyone for your support
Moral: Sometimes you think the problem is inside the box, when it is actually outside lol.