FS19 - How to move IndoorCamera

kenny456
Posts: 7
Joined: Tue Aug 28, 2018 7:00 pm

FS19 - How to move IndoorCamera

Post by kenny456 » Mon Feb 11, 2019 12:14 pm

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?

wiseguy49
Posts: 235
Joined: Thu Jan 19, 2017 1:25 pm

Re: FS19 - How to move IndoorCamera

Post by wiseguy49 » 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.

kenny456
Posts: 7
Joined: Tue Aug 28, 2018 7:00 pm

Re: FS19 - How to move IndoorCamera

Post by kenny456 » Mon Feb 11, 2019 11:02 pm

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...

wiseguy49
Posts: 235
Joined: Thu Jan 19, 2017 1:25 pm

Re: FS19 - How to move IndoorCamera

Post by wiseguy49 » Tue Feb 12, 2019 2:52 pm

Well then you might want to say that before I waste my time. Thanks for that.

Post Reply