Prototype/Gun::attack_target_mask & ignore_target_mask

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Prototype/Gun::attack_target_mask & ignore_target_mask

Post by Schallfalke »

I have read articles about target masks.
Next I found out Prototype/Turret has attack_target_mask & ignore_target_mask, allowing a turret to not fire at blacklisted types.

I want to request the same properties on either Prototype/Gun or within its attack_parameters. Spidertrons have auto-targeting, so would take advantage of these properties.

Use case: A specific anti-XXX gun on Spidertrons.
Using the above-quoted example of water turret, the modified Spidertron water cannon should not shoot at the spawners and worms. During weapon cycling, the water cannon would shoot the biters or spitters around instead.

Post Reply

Return to “Modding interface requests”