Forum rules - please read before posting, it can save you a lot of time.
var obj1 = new Object(script1.script);var obj2 = new Object(script2.script);
method construct(){ this.vlastnost = hodnota;}
method funkce (par){ Game.Msg(par.hodnota);}
obj2.funkce(obj1);
method construct(hodnota){ this.vlastnost = hodnota;}
method funkce (par){ Game.Msg(par.vlastnost);}
var obj1 = new Object("cesta\script1.script"); obj1.construct(1234); var obj2 = new Object("cesta\script2.script"); obj2.funkce(obj1);
method construct(hodnota){ var en = Game.CreateEntity("sprites\vozik.sprite"); this = en; this.vlastnost = hodnota;}