[Rseding91] [0.16.15] artillery autotargets cease_fire=true forces
Posted: Mon Jan 08, 2018 3:08 pm
Suppose there are two forces, A and B. Force A has a ceasefire with force B, set by . An artillery turret belonging to force A will automatically target and fire on aggressive units, such as turrets, owned by force B. In order to prevent artillery turrets belonging to force A from automatically firing on aggressive units owned by force B, force A must have force B set to friend, as in . This seems unintuitive since having a ceasefire with another force should prevent all turrets from automatically targeting that force and not just non-artillery turrets.
Code: Select all
game.forces.A.set_cease_fire('B', true)
Code: Select all
game.forces.A.set_friend('B', true)