Page 1 of 1

FS19 - How to move IndoorCamera

Posted: Mon Feb 11, 2019 12:14 pm
by kenny456
This work in FS17:
for i=1, self.numCameras do
if self.cameras.isInside then
self.internalCamera = Utils.indexToObject(self.components, self.camIndex);
end;
end;
x,y,z = getTranslation(self.internalCamera);
x = x + 1
setTtranslation(self.internalCamera, x,y,z)

But in FS19 camera does not move at all. How to index camera object correctly?

Re: FS19 - How to move IndoorCamera

Posted: Mon Feb 11, 2019 4:30 pm
by wiseguy49
This part:
Utils.indexToObject

change to:
I3DUtil.indexToObject

I know for sure that needs to be updated.. but I can't guarantee it will work after just doing that.

Re: FS19 - How to move IndoorCamera

Posted: Mon Feb 11, 2019 11:02 pm
by kenny456
wiseguy49 wrote: Mon Feb 11, 2019 4:30 pm This part:
Utils.indexToObject

change to:
I3DUtil.indexToObject

I know for sure that needs to be updated.. but I can't guarantee it will work after just doing that.
Thank you, but i used I3DUtil ofcourse...

Re: FS19 - How to move IndoorCamera

Posted: Tue Feb 12, 2019 2:52 pm
by wiseguy49
Well then you might want to say that before I waste my time. Thanks for that.