Shared charts and radar behaviors
Posted: Mon Feb 24, 2025 7:58 pm
Hello, I have a few questions about shared charts and built-in radar behaviors in 2.0.
My issue is: when dealing with multiple forces, that have LuaForce::share_chart set to true, some entities share their charting area, while others dont. Here's my tests.
Case A: same force.
- These entities WILL chart their area: Player, Character, Spidertron, Radar, Roboport, Cargo landing pad
Case B: different forces
..with friendly relation, and share_charts = true
- These entities WILL chart their area: Player, Spidertron
- These entities WILL NOT chart their area: Character, Radar, Roboport, Cargo landing pad
So my question is, is this intentional? Has it to do with the built-ins radar range? I would expect Radar, Roboport, and Cargo landing pads to share their chartings as well to other forces when share charts is enabled.
Ty for your support
My issue is: when dealing with multiple forces, that have LuaForce::share_chart set to true, some entities share their charting area, while others dont. Here's my tests.
Case A: same force.
- These entities WILL chart their area: Player, Character, Spidertron, Radar, Roboport, Cargo landing pad
Case B: different forces
..with friendly relation, and share_charts = true
- These entities WILL chart their area: Player, Spidertron
- These entities WILL NOT chart their area: Character, Radar, Roboport, Cargo landing pad
So my question is, is this intentional? Has it to do with the built-ins radar range? I would expect Radar, Roboport, and Cargo landing pads to share their chartings as well to other forces when share charts is enabled.
Ty for your support