Service: bug fix

This commit is contained in:
Sidi Liang 2020-11-28 13:19:27 +08:00
parent 73162e269d
commit b619cd74a3
1 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,9 @@ var AdditionalModel = {
name: "New Model",
info: "This is a new model for followme EV created by FGPRC",
path: me._aircraftPath ~ me.relativePath,
getPath: func(){
return me._aircraftPath ~ me.relativePath;
},
relativePath: "",
hdg: 0,
coord: nil,
@ -61,7 +63,7 @@ var AdditionalModel = {
print("AdditionalModel: Model " ~ me.name ~ " loaded from node!");
},
placeModel: func(){
geo.put_model(me.path, me.coord, me.hdg);
geo.put_model(me.getPath(), me.coord, me.hdg);
me._isPlaced = 1;
print("AdditionalModel: Model " ~ me.name ~ " is placed");
},