[1.1.42] Cars trigger_target_mask is not relevant for turret targeting
Posted: Fri Oct 15, 2021 5:44 pm
I'm currently making a mod again. I'm trying to make an "ammo-turret" that only aims at "car"s that have a certain trigger_target_mask.
I'm doing this by giving the turret a new TriggerTargetMask {"air-unit"} as attack_target_mask, {"ground-unit"} as ignore_target_mask and giving all cars the same TriggerTargetMask {"air-unit"} as trigger_target_mask as well.
However the turret is not attacking the modified cars in idle state as well as in entered-by-player state. The idle state is normal. However it is strange that the turret is not attacking when a player is inside although the car has the correct trigger_target_mask.
I did a bit of testing and I can confirm that the vehicle with a player inside WILL get attacked WHEN the characters(!) trigger_target_mask is the same as the turrets attack_target_mask.
What would I expect to happen?
The turret attacking cars (with characters inside) that share the same trigger_target_mask with its own attack_target_mask regardless of the characters trigger_target_mask.
I'm doing this by giving the turret a new TriggerTargetMask {"air-unit"} as attack_target_mask, {"ground-unit"} as ignore_target_mask and giving all cars the same TriggerTargetMask {"air-unit"} as trigger_target_mask as well.
However the turret is not attacking the modified cars in idle state as well as in entered-by-player state. The idle state is normal. However it is strange that the turret is not attacking when a player is inside although the car has the correct trigger_target_mask.
I did a bit of testing and I can confirm that the vehicle with a player inside WILL get attacked WHEN the characters(!) trigger_target_mask is the same as the turrets attack_target_mask.
What would I expect to happen?
The turret attacking cars (with characters inside) that share the same trigger_target_mask with its own attack_target_mask regardless of the characters trigger_target_mask.