Page 1 of 1

Cam lock -API

Posted: Mon Oct 24, 2016 11:52 pm
by Chocolatetthunder
is it currently possible to lock my camera onto a player?

I am making a spectator option in my scenario, and would like to be able to lock my camera onto other players characters. I think adding this functionality to the api would greatly benefit Scenario creation.

Re: Cam lock -API

Posted: Tue Oct 25, 2016 12:58 am
by aubergine18
You can teleport player X to position of player Y in an on_tick event (maybe every 10 ticks or so to prevent too much network spamming). I have no idea if this will work when player is in god mode or ghost mode. http://lua-api.factorio.com/latest/LuaC ... l.teleport

Re: Cam lock -API

Posted: Tue Oct 25, 2016 10:51 am
by ssilk
Moved from Suggestions to Modding Interface Requests.