[Solved]Could not create cutscene controller
Posted: Mon Apr 01, 2019 1:07 pm
I'm trying to create a cutscene:
And when I call this function, I get an error:
What is wrong with the position provided?
Code: Select all
function cutscene(player)
local waypoint = {
position = {x=100,y=100},
transition_time = 1000,
time_to_wait = 1000
}
player.set_controller{ --line 546
type = defines.controllers.cutscene,
waypoints = waypoint,
final_transition_time = 1000}Code: Select all
/c cutscene(game.player)