In my function ButtonClick which is part of my class extending GuiTabPanel, I define:
which brings up a compile error.
If I define:
it compiles without any problems.
Why do I need a Object of Playercontroller in order to spawn a new object? Is spawn not some defined to create new objects without any references?
OOP is totally new and maybe 20 years programming "normal" languages messed me up for oop
, but I have somehow problems getting this into my brain.
Thanks for any help,
Andreas
Code:
function bool ButtonClick(GUIComponent Sender) { local actor myactor; myActor = spawn(class'SkaarjPack.Manta',vect(100,100,100),rot(0,0,0)); }
If I define:
Code:
function bool ButtonClick(GUIComponent Sender) { local actor myactor; myActor = PlayerOwner().spawn(class'SkaarjPack.Manta',vect(100,100,100),rot(0,0,0)); }
Why do I need a Object of Playercontroller in order to spawn a new object? Is spawn not some defined to create new objects without any references?
OOP is totally new and maybe 20 years programming "normal" languages messed me up for oop

Thanks for any help,
Andreas
Comment