Search found 2 matches

by Gregzenegair
Thu Mar 28, 2019 7:25 am
Forum: Modding help
Topic: player.force update bug when using custom force ?
Replies: 2
Views: 487

Re: player.force update bug when using custom force ?

Hello,

Ok, I have found out the problem's origin. It is more a bug report than an ask for help, but well ...

So I noticed that if after calling player.set_controller({type = defines.controllers.ghost}) which detach the player's character, the call to player.force = "team_of_my_choice" won't work ...
by Gregzenegair
Wed Mar 27, 2019 11:27 pm
Forum: Modding help
Topic: player.force update bug when using custom force ?
Replies: 2
Views: 487

player.force update bug when using custom force ?

Hello,

I am currently modding the game, and I am playing with the player.force values as string.

When you set for the first time player.force = "force_1" it correctly sets the player's force from "player" to "force_1". The problem I noticed is when you want to update the force from "force_1" to ...

Go to advanced search