Area attack for ground units
Moderator: Moderators
Area attack for ground units
Would be useful to have an area attack option for e.g. artillery so you can more effectively pound targets out of LOS, especially for counter-battery fire. I was thinking about just adding the command to arty but was told ground units cannot use the command anyway.
Actually, lua should be able to circumvent that restriction by emulating the command.
Lets say instead of giving a position and radius to a CMD_ATTACK order, we give it to a CMD_FUNKY_LUA_AREA_ATTACK_REPLACEMENT order.
Then lua will find the nearest enemy in that radius and issue a CMD_ATTACK order, then repeat the process untill there are no longer any enemies in that radius.
Lets say instead of giving a position and radius to a CMD_ATTACK order, we give it to a CMD_FUNKY_LUA_AREA_ATTACK_REPLACEMENT order.
Then lua will find the nearest enemy in that radius and issue a CMD_ATTACK order, then repeat the process untill there are no longer any enemies in that radius.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
I have yet to see lua integrated orders work well with both command queing and UI integration (for an example, see jk's commando script, which is really great when it works, but ultimately unusable because of a lack of integration with the normal command system).
I too would love to see this, but it really needs to be able to be qued just as any other order, and it needs to be able to be seen in qued order lists, and other essential UI integration.
I too would love to see this, but it really needs to be able to be qued just as any other order, and it needs to be able to be seen in qued order lists, and other essential UI integration.