1. Set enemy and player damage modifiers
Code: Select all
/c game.print(game.forces.enemy.set_ammo_damage_modifier('combat-robot-laser',0))
Code: Select all
/c game.print(game.forces.player.set_ammo_damage_modifier('combat-robot-laser',-.2))
Code: Select all
/c local ent = game.surfaces[1].create_entity{name = "assembling-machine-1", position = {15, 3}, force = game.forces.enemy, recipe = "iron-stick"}; game.print(ent.surface.create_entity{name = "distractor", position = {15,3}, target = ent, force = ent.force,speed=1}.force.get_ammo_damage_modifier('combat-robot-laser'));
5. Affected modifiers - bullet, combat-robot-laser, combat-robot-beam