Search found 2 matches
- Fri Oct 11, 2019 9:38 pm
- Forum: Modding interface requests
- Topic: [0.17.69] on_entity_died for entities with animation needs 'cause' parameter to be available.
- Replies: 0
- Views: 398
[0.17.69] on_entity_died for entities with animation needs 'cause' parameter to be available.
/c game.player.surface.create_entity{name="small-worm-turret", position={50,0}} /c script.on_event(defines.events.on_entity_died, function(event) game.print(event.cause) end) Right now when a player kills any of the turrets (worms/gun/laser), the optional 'cause' parameter is returned as ...
- Sat Sep 28, 2019 6:48 pm
- Forum: Resolved Problems and Bugs
- Topic: [Rseding] [0.17.69] Enemy combat bots gui show damage based on player force modifiers.
- Replies: 2
- Views: 1586
[Rseding] [0.17.69] Enemy combat bots gui show damage based on player force modifiers.
Steps 1. Set enemy and player damage modifiers /c game.print(game.forces.enemy.set_ammo_damage_modifier('combat-robot-laser',0)) /c game.print(game.forces.player.set_ammo_damage_modifier('combat-robot-laser',-.2)) 2. Spawn a Combat bot - In this case, il be using a distractor. /c local ent = game.su...