MyOtherClass:= class():
ChangeMyInt():void=
#what goes here to set/change the value of "MyInt" from "MyClass"?
MyClass := class(creative_device):
var MyInt: int = 0
OnBegin<override>()<suspends>:void=
NewMyOtherClass:=MyOtherClass{}
MyOtherClass.ChangeMyInt()
So my question is what would I place in ChangeMyInt() to change the MyInt variable in MyClass
Side question: is it possible to avoid the “MyOtherClass.ChangeMyInt()” line, and appon creation of MyOtherClass, automatically call ChangeMyInt()
Might be a super basic question but im new