Specific Unit Attacks Specific Unit (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


Sybaris -> Specific Unit Attacks Specific Unit (8/19/2020 9:12:31 PM)

I'm trying to get a couple aircraft (Backfire B's w/ AS-4's) in a flight to attack a specific ship LCC-19 Blue Ridge and tried to use this:

ScenEdit_AttackContact('Flight 3079','336', {mode='1', mount=0, weapon=1820, qty=2})

Not working

Is it possible to do this and I'm just LUA ignorant?

Any help much appreciated




KnightHawk75 -> RE: Specific Unit Attacks Specific Unit (8/20/2020 12:16:32 AM)

Maybe don't include mount=0 if the weapon in question is on the aircraft loadout to be used.

from docs:
quote:

Note: The function will use the weapon from the aircraft loadout if applicable when no mount is supplied.


If that's not it, try using the unit guids for attacker and contact in case there is ambiguity in the names being used.




Sybaris -> RE: Specific Unit Attacks Specific Unit (8/21/2020 11:52:05 AM)


quote:

ORIGINAL: KnightHawk75


If that's not it, try using the unit guids for attacker and contact in case there is ambiguity in the names being used.


That worked




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.4375