[1.1.53] not-same-force followers count towards followers
Posted: Sat Jan 29, 2022 10:02 pm
Description: Not-same-force followers count towards the character (entity?) amounts and will even destroy player bots.
e.g.:
What I'd expect: other-force bots to not be a part of the same follower pool. I don't have an expectation on "should the follower count respect the same force's limit on the entity", or, "disregard a limit for not-same-force entities".
e.g.:
Code: Select all
/c
local player = game.player
local surface = player.surface
local position = player.position
player.force.maximum_following_robot_count = 5
local bot_t = {
name = "defender",
surface = surface,
force = "player",
position = position,
target = player.character
}
local player_count = 5
for i = 1, player_count do
surface.create_entity(bot_t)
end
bot_t.force = "neutral"
position.x = position.x + 10
local other_count = 3
for i = 1, other_count do
surface.create_entity(bot_t)
end